Your SlideShare is downloading. ×
Nosql
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Nosql

196
views

Published on

NOSQL and Neo4j and Mongodb

NOSQL and Neo4j and Mongodb

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
196
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. NOSQLIntroduction to NOSQL databasesVAHID KHARAZI <vahid@Kharazi.net>
  • 2. Why NOSQL?
  • 3. OBJECT BASED DATABASESSQL way to saving objects in database
  • 4. An Example
  • 5. Structured Types create type Name as (firstname varchar(20), lastname varchar(20)) create type Address as (street varchar(20), city varchar(20), zipcodevarchar(20)) Structured types can be used to create tables with composite attributes create table person ( name Name, address Address, dateOfBirth date)
  • 6. NOSQL DATA MODELSIntroduction to nosql data modelsVAHID KHARAZI <vahid@Kharazi.net>
  • 7. NEO4jA graph based DBMS
  • 8. NEO4J DBMS
  • 9. Cypher – the neo4j query language
  • 10. LOCALHOST:7474Secure the port and remote client connection accepts
  • 11. MONGODBA Document-Oriented DBMS
  • 12. MONGODB DBMS
  • 13. Document-Oriented StorageSQL Terms/Concepts MongoDB Terms/Conceptsdatabase databasetable collectionrow document or BSON documentcolumn fieldindex indextable joins embedded documents and linkingprimary keySpecify any unique column or columncombination as primary key.primary keyIn MongoDB, the primary key isautomatically set to the _idfield.aggregation (e.g. group by)aggregation frameworkSee the SQL to AggregationFramework Mapping Chart.
  • 14. Dictionaries j = { name : "mongo“, family : ”Kharazi” , courses: [ database : {instructor:’Dr Naderi’ , grade : 9.75 }, algorithm: { instructor : ‘Karimi’ ] } k = { x : 3 } db.person.insert( j ) db.person.insert( k ) Person is a collection
  • 15. SQL to MongoDB Mapping Chart
  • 16. SQL to MongoDB Mapping Chart
  • 17. SQL to MongoDB Mapping Chart
  • 18. SQL to MongoDB Mapping Chart