Presentation is loading. Please wait.

Presentation is loading. Please wait.

Slide 1 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 1 A Tour of the NoSQL World David Cassel, MarkLogic Sr. Consultant 7 Nov 2011.

Similar presentations


Presentation on theme: "Slide 1 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 1 A Tour of the NoSQL World David Cassel, MarkLogic Sr. Consultant 7 Nov 2011."— Presentation transcript:

1 Slide 1 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 1 A Tour of the NoSQL World David Cassel, MarkLogic Sr. Consultant 7 Nov 2011

2 Slide 2 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 2 Why NoSQL? RDBMSes are familiar ubiquitous backed by a body of research

3 Slide 3 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 3 Why NoSQL? docmetatitleabstractcontentchapter Database Server

4 Slide 4 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 4 What is NoSQL? "NoSQL refers to a class of databases 1) are intended to perform at internet (Facebook, Twitter, LinkedIn) scale and 2) reject the relational model in favor of other (key-value, document, graph) models." -- http://www.greenhornconnect.com/blog/dan-croak-what-nosqlhttp://www.greenhornconnect.com/blog/dan-croak-what-nosql "Next Generation Databases mostly addressing some of the points: being non-relational, distributed, open-source and horizontally scalable. The original intention has been modern web-scale databases. … Often more characteristics apply as: schema-free, easy replication support, simple API, eventually consistent /BASE (not ACID), a huge data amount, and more." -- http://nosql-database.org/ http://nosql-database.org/ "NoSQL (sometimes expanded to "not only SQL") is a broad class of database management systems that differ from classic relational database management systems (RDBMSes)…. These data stores may not require fixed table schemas, usually avoid join operations, and typically scale horizontally." -- Wikipedia database management systemsrelational database management systemstable schemasjoinscale horizontallyWikipedia

5 Slide 5 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 5 What is NoSQL?

6 Slide 6 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 6 Graph Databases Dave DawnChris status Mark Logic

7 Slide 7 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 7 Key-Value Store app_setting_width450 user1923_colorRed user1923_age18 user3371_colorBlue user4344_colorBrackish user1923_height6' 0" user3371_age34 error_msg_457There is no file %1 here error_message_1There is no user with %1 name 1923_nameJim user1923_nameJim Smith user1923_lnameSmith Application_Installedtrue log_errors1 install_pathC:\Windows\System32\Restricted ServerNamelocalhosttest test1test test123Brackish devonly wonderwoman valuekey http://dba.stackexchange.com/questions/607/what-is-a-key-value-store-database

8 Slide 8 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 8 Column Stores idfirstlastzip 23BugsBunny48389 983FoghornLeghorn19394 420MarvinMartian04829 185ElmerFudd25749 23,Bugs,Bunny,48389 983,Foghorn,Leghorn,19394 420,Marvin,Martian,04829 185,Elmer,Fudd,25749 23,983,420,185 Bugs,Foghorn,Marvin,Elmer Bunny,Leghorn,Martian,Fudd 48389,19394,04829,25749

9 Slide 9 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 9 Document Store /posts/a-custom-facet-for-the-search-api.xml … /posts/unparsing-a-custom-facet.xml …

10 Slide 10 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 10 Querying a Document Store

11 Slide 11 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 11 Querying a Document Store A custom facet for the Search API David Cassel 2011-07-27 … marklogic search api Software Development …

12 Slide 12 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 12 Querying a Document Store cts:search(/blog, cts:and-query(( cts:word-query(“facet”) cts:near-query(( cts:word-query(“search api”) cts:word-query(“custom”)), 10) )) ) db.things.find({name:"mongo"}).forEach(printjson);

13 Slide 13 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 13 Scaling Scale Up Scale Out

14 Slide 14 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 14 Growing the database

15 Slide 15 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 15 No Schema New Requirement:  Our company has acquired a small publishing house. Put their publications in the database with our existing ones.

16 Slide 16 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 16 Does all this help?

17 Slide 17 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 17 ACID properties tomicity onsistency solation urability

18 Slide 18 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 18 ACID -- Atomicity Remove $ from A Add $ to B Complete Transaction

19 Slide 19 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 19 ACID -- Consistency /content/foo.xml idNameJob 1DaveDeveloper 1BobSales 1 2

20 Slide 20 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 20 ACID -- Isolation Write Done Write Read t=0t=1 t=2 t=3 Dirty reads Non-repeatable reads Phantom reads

21 Slide 21 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 21 ACID – Durability RAM Journal Disk

22 Slide 22 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 22 NoSQL Support

23 Slide 23 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 23 Where does MarkLogic fit? tomicity onsistency solation urability Express License Enterprise Level (100s of terabytes)

24 Slide 24 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 24 The Other Side of the Coin  Variety  Architecture (yay!)  Maturity  Administration  Tool support  Knowledgeable developers  Support  Open Source – support companies  Commercial – MarkLogic

25 Slide 25 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 25 NoSQL means: The Right Tool for the Job Blog: http://blog.davidcassel.nethttp://blog.davidcassel.net Twitter: @dmcassel


Download ppt "Slide 1 Copyright © 2011 MarkLogic ® Corporation. All rights reserved. Slide 1 A Tour of the NoSQL World David Cassel, MarkLogic Sr. Consultant 7 Nov 2011."

Similar presentations


Ads by Google