NOSQLIntroduction to NOSQL databasesVAHID KHARAZI <vahid@Kharazi.net>
Why NOSQL?
OBJECT BASED DATABASESSQL way to saving objects in database
An Example
Structured Types create type Name as (firstname varchar(20), lastname varchar(20)) create type Address as (street varcha...
NOSQL DATA MODELSIntroduction to nosql data modelsVAHID KHARAZI <vahid@Kharazi.net>
NEO4jA graph based DBMS
NEO4J DBMS
Cypher – the neo4j query language
LOCALHOST:7474Secure the port and remote client connection accepts
MONGODBA Document-Oriented DBMS
MONGODB DBMS
Document-Oriented StorageSQL Terms/Concepts MongoDB Terms/Conceptsdatabase databasetable collectionrow document or BSON do...
Dictionaries j = { name : "mongo“, family : ”Kharazi” , courses: [ database : {instructor:’Dr Naderi’ , grade : 9.75 }, a...
SQL to MongoDB Mapping Chart
SQL to MongoDB Mapping Chart
SQL to MongoDB Mapping Chart
SQL to MongoDB Mapping Chart
Upcoming SlideShare
Loading in...5
×

Nosql

212

Published on

NOSQL and Neo4j and Mongodb

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

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

No notes for slide

Transcript of "Nosql"

  1. 1. NOSQLIntroduction to NOSQL databasesVAHID KHARAZI <vahid@Kharazi.net>
  2. 2. Why NOSQL?
  3. 3. OBJECT BASED DATABASESSQL way to saving objects in database
  4. 4. An Example
  5. 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. 6. NOSQL DATA MODELSIntroduction to nosql data modelsVAHID KHARAZI <vahid@Kharazi.net>
  7. 7. NEO4jA graph based DBMS
  8. 8. NEO4J DBMS
  9. 9. Cypher – the neo4j query language
  10. 10. LOCALHOST:7474Secure the port and remote client connection accepts
  11. 11. MONGODBA Document-Oriented DBMS
  12. 12. MONGODB DBMS
  13. 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. 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. 15. SQL to MongoDB Mapping Chart
  16. 16. SQL to MongoDB Mapping Chart
  17. 17. SQL to MongoDB Mapping Chart
  18. 18. SQL to MongoDB Mapping Chart

×