MySQL's NoSQL Interface

  • 671 views
Uploaded on

MySQL's NoSQL Interface as presented at Strata 2013

MySQL's NoSQL Interface as presented at Strata 2013

More in: Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
671
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
22
Comments
0
Likes
0

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. 1Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 2. MySQL's NoSQL Interface Dave Stokes MySQL Community Manager David.Stokes@Oracle.com @stoker Slideshare.net/davestokes 2Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Picture Here
  • 3. Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decision. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 4. MySQL  Most popular database on the web  Ubiquitous  16+ million instances  Feeds 80% of Hadoop installs 4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 5. Access SQL and NoSQL At the same time! One set of disks Simultaneous access MySQL InnoDB tables and NDB tables Use SQL and/or Key/Value pair 2,000,000,000 writes a minute with MySQL Cluster 5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 6. 6 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 7. 7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 8. Benefits Raw performance for simple lookups. Direct access to the InnoDB storage engine avoids the parsing and planning overhead of SQL. Running memcached in the same process space as the MySQL server avoids the network overhead of passing requests back and forth. Data is stored in a MySQL database to protect against crashes, outages, and corruption. The transfer between memory and disk is handled automatically, simplifying application logic. Data can be unstructured or structured, depending on the type of application. You can make an all-new table for the data, or map the NoSQL-style processing to one or more existing tables. 8 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 9. Benefits continued You can still access the underlying table through SQL, for reporting, analysis, ad hoc queries, bulk loading, set operations such as union and intersection, and other operations well suited to the expressiveness and flexibility of SQL. You can ensure high availability of the NoSQL data by using this feature on a master server in combination with MySQL replication. The integration of memcached with MySQL provides a painless way to make the in-memory data persistent, so you can use it for more significant kinds of data. You can put more add, incr, and similar write operations into your application, without worrying that the data could disappear at any moment. You can stop and start the memcached server without losing updates made to the cached data. To guard against unexpected outages, you can take advantage of InnoDB crash recovery, replication, and backup procedures. The way InnoDB does fast primary key lookups is a natural fit for memcached single-item queries. The direct, low-level database access path used by the memcached plugin is much more efficient for key-value lookups than equivalent SQL queries. 9 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 10. More Benefits Continued The serialization features of memcached, which can turn complex data structures, binary files, or even code blocks into storeable strings, offer a simple way to get such objects into a database. Because you can access the underlying data through SQL, you can produce reports, search or update across multiple keys, and call functions such as AVG() and MAX() on the memcached data. All of these operations are expensive or complicated with the standalone memcached. You do not need to manually load data into memcached at startup. As particular keys are requested by an application, the values are retrieved from the database automatically, and cached in memory using the InnoDB buffer pool. Because memcached consumes relatively little CPU, and its memory footprint is easy to control, it can run comfortably alongside a MySQL instance on the same system. Because data consistency is enforced through the usual mechanism as with regular InnoDB tables, you do not have to worry about stale memcached data or fallback logic to query the database in the case of a missing key 10 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 11. Installation mysql> install plugin daemon_memcached soname "libmemcached.so"; 11 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 12. Here is an example using telnet to send memcached commands and receive results through the ASCII protocol: ● ● set a11 10 0 9 ● 123456789 ● STORED ● get a11 ● VALUE a11 0 9 ● 123456789 ● END ● 12 telnet 127.0.0.1 11211 quit Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 13. Can it be used with MySQL Replication? Because the InnoDB memcached daemon plugin supports the MySQL binary log, any updates made on a master server through the memcached interface can be replicated for backup, balancing intensive read workloads, and high availability. All memcached commands are supported for binlogging. You do not need to set up the InnoDB memcached plugin on the slave servers. In this configuration, the primary advantage is increased write throughput on the master. The speed of the replication mechanism is not affected 13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 14. With MySQL Cluster 14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 15. Bypass MySQL daemon! ● 4.2 billions reads/min ● 1.2 billion updates/min ● 2 billion writes a min ● 15 MySQL Cluster Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 16. 16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 17. 17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 18. For More Information ● Mysql.com ● Labs.mysql.com ● Planet.mysql.com ● Dave Stokes David.Stokes@Oracle.com @stoker slideshare.net/davestokes 18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 19. Graphic Section Divider 19 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 20. Image Section Divider Insert PicturePicture Here Insert Here 20 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 21. ORACLE PRODUCT LOGO Announcement ALL CAPS, ARIAL 44 PT, 4-LINE MAX 21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 22. Title, Arial, 28 PT, Two-Line Max Insert Picture Here Insert Picture Here 22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. ORACLE PRODUCT LOGO BODY/STATEMENT COPY, ALL CAPS, 24 PT, HIGHLIGHT TEXT IN BLUE, USED FOR EMPHASIS
  • 23. Case Study Example with Photograph Solutions Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce a sagittis orci. Maecenas vehicula lorem pharetra ipsum suscipit ut venenatis risus facilisis. Donec vel augue vitae urna aliquet cursus. Aliquam rutrum iaculis. 23 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Picture Here
  • 24. Case Study Example with Screenshot Solutions Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce a sagittis orci. Maecenas vehicula lorem pharetra ipsum suscipit ut venenatis risus facilisis. Donec vel augue vitae urna aliquet cursus. Aliquam rutrum iaculis. 24 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Picture Here
  • 25. Case Study Example with Graphic Solutions Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce a sagittis orci. Maecenas vehicula lorem pharetra ipsum suscipit ut venenatis risus facilisis. Donec vel augue vitae urna aliquet cursus. Aliquam rutrum iaculis. 25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Picture Here
  • 26. Case Study Example with Partner Logos Solutions Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce a sagittis orci. Maecenas vehicula lorem pharetra ipsum suscipit ut venenatis risus facilisis. Donec vel augue vitae urna aliquet cursus. Aliquam rutrum iaculis. 26 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Picture Here
  • 27. THIRD PARTY COMPANY LOGO “This slide format serves to call attention to a quote from a prominent customer, executive, or thought leader regarding a particular topic.” Insert Author Name Here Position Title, Company Name 27 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 28. Vertical Bar Chart 6 5 4 Contextual information about the chart 3 Insert Chart Here 2 1 0 28 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Category 1 Category 2 Category 3 Category 4
  • 29. Horizontal Bar Chart Category 4 Category 3 Contextual information about the chart Insert Chart Here Category 2 Category 1 0 29 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1 2 3 4 5 6
  • 30. Stacked Chart 14 12 10 Contextual information about the chart 8 6 Insert Chart Here 4 2 0 30 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Category 1 Category 2 Category 3 Category 4
  • 31. Line Chart 6 5 4 Contextual information about the chart 3 2 Insert Chart Here 1 0 Category 1 31 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Category 2 Category 3 Category 4
  • 32. Pie Chart 4.3 4.5 Contextual information about the chart Insert Chart Here 3.5 Category 1 32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Category 2 2.5 Category 3 Category 4
  • 33. Tables Title  Bullet 33 Title  Bullet Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 34. Tables Title  Bullet Title  Bullet Title  Bullet 34 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 35. Tables Title Insert content here Insert content here Insert content here Insert content here Insert content here Insert content here Insert content here Insert content here Insert highlighted content here Insert highlighted content here Insert content here 35 Title Insert content here Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 36. Tables Title Text  Bullet Text  Bullet  Bullet  Bullet Text Text  Bullet  Bullet  Bullet 36  Bullet  Bullet Label  Bullet Text Label Text  Bullet Label Title  Bullet Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 37. Tables Title Title Title Title Title Title Label      Label       Label       Label 37        Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 38. Tables Title Title Title Title Title Title Label 0.00 000.00 00.00 00.00 00.00 Label 0.00 00.00 0.00 0.00 0.00 0.00 Label 000.00 0.00 00.00 0.00 0.00 000.00 Label 38 00.00 0.00 000.00 0.00 000.00 00.00 00.00 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 39. Tables Title Subtitle  Bullet  Bullet Text  Bullet  Bullet  Bullet  Bullet Text Text  Bullet  Bullet  Bullet 39  Bullet Text Label Text  Bullet Label Subtitle Text Label Title  Bullet Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 40. 40Copyright © 2013, Oracle and/or its affiliates. All rights reserved.