The document discusses MySQL's implementation of NoSQL capabilities within its traditional SQL database. MySQL 5.6 introduced a Memcached plugin that allows for fast, non-SQL key-value access to data stored in InnoDB tables. This provides the speed of NoSQL with the ACID compliance and crash recovery of SQL. The plugin can be installed and configured, then data accessed from either Memcached clients or SQL. This allows MySQL to serve as both a traditional SQL database and a NoSQL store.
Low Sexy Call Girls In Mohali 9053900678 ๐ฅตHave Save And Good Place ๐ฅต
ย
MySql's NoSQL -- best of both worlds on the same disks
1. MySQL's NoSQL with SQL โ
Best of Both Worlds
โDave Stokes
โ MySQL Community Manager
โ David.Stokes@oracle.com @Stoker
Copyright ยฉ 2013, Oracle and/or its affiliates. 1 All rights reserved.
2. 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.
Copyright ยฉ 2014, Oracle and/or its affiliates. 2 All rights reserved.
3. MySQL Releases since 2010
โข Enterprise Monitor 2.2, 2.3
โข Cluster 7.1, 7.2, 7.3
โข Cluster Manager 1, 1.1, 1.3
โข Workbench 5.2, 6, 6.1
โข Database 5.5, 5.6, DMR 5.7
โข Backup 3.5, 3.7, 3.1
โข Oracle VM for MySQL
โข Oracle Product Certifications
โข Windows Installer
โข Utilities 1.0.6
โข Audit
โข Fabric (RC)
Copyright ยฉ 2014, Oracle and/or its affiliates. 3 All rights reserved.
โ More Developers
โ More QA
โ More Support
โ Making $$
โ Classes popular
โ Instructor lead
โ Self-paced
โ We're hiring!
4. MySQL 5.6 GA 19 Months Ago โ Best GA Ever
โ Performance
โ Scales to 48 CPU threads
โ Up to 230% faster than 5.5
Copyright ยฉ 2014, Oracle and/or its affiliates. 4 All rights reserved.
โ Faster Optimizer
โ Performance
โ Diagnostics
โ Better Instrumentation
โ Improved Replication
โ NoSQL
โ Fast โ 9x
โ Key/value, ACID
โ InnoDB
โ Better Transactional
throughput
6. Bypassing Syntax Check and Optimizer 9x Faster
Copyright ยฉ 2014, Oracle and/or its affiliates. 6 All rights reserved.
7. Handler Socket DeNA circa 2010
โ Bypasses Optimizer & Parser
โ Very Fast
โ Limited Security
โ Not ACID
โ 750,000 accesses second
Copyright ยฉ 2014, Oracle and/or its affiliates. 7 All rights reserved.
8. Memcached w/InnoDB โ a better way
โ Runs in same process space, fast โ1,140,000 accesses/second
โ Data can be structure or unstructured
โ InnoDB handles composing/decomposing data as part of multi
column support which cuts string handling in your application
โ Crash safe and consistent data
โ Can tune data passing between InnoDB/Memecached, transaction
levels, lock metadata (no DDL while in use)
โ Can password protect Memcached via SASL
Copyright ยฉ 2014, Oracle and/or its affiliates. 8 All rights reserved.
9. Installation
โ sudo apt-get install libevent-dev libmemcached-tools
โ Memcached.so (already in 5.6/7)
โ my.cnf
โ plugin-load=libmemcached.so
โ Or after boot
โ mysql> install plugin daemon_memcached soname
"libmemcached.so";
โ Check your ulimit (Look for failed to set rlimit for open files in logs)
Copyright ยฉ 2014, Oracle and/or its affiliates. 9 All rights reserved.
10. Installation continues
โ Set up configuration tables
โ innodb_memcached_config.sql
โ Creates innodb_memcached schema
โ cache_policies
โ config_options
โ Containers
โ Test example
Copyright ยฉ 2014, Oracle and/or its affiliates. 10 All rights reserved.
11. Test from Memcached side
โ telnet 127.0.0.1 11211
โ set a11 10 0 9
โ 123456789
โ STORED
โ get a11
โ VALUE a11 0 9
โ 123456789
โ END
โ quit
Copyright ยฉ 2014, Oracle and/or its affiliates. 11 All rights reserved.
The arguments to set are
โ a11 is the key
โ 10 is the flag to use
โ 0 is the TTL
โ 9 is the length of the string to
store
โ 123456789 is the string to
store
12. Test from SQL side
c1 c2 c3 c4 c6
a11 123456789 10 3 0
Data is available through both Memcached & SQL at the same
time
Copyright ยฉ 2014, Oracle and/or its affiliates. 12 All rights reserved.
13. Options you can set
โ Separator and table_map_delimiter (config_options)
โ Policies (cache_policies)
โ Use memcached, InnoDB (or NDB) for data store
โ Name, schema, table name, key columns, value columns, flags,
cas_column, expiration, index to use on key
Copyright ยฉ 2014, Oracle and/or its affiliates. 13 All rights reserved.
14. Slide to check if audience is still awake
Copyright ยฉ 2013, Oracle and/or its affiliates. 14 All rights reserved.
15. Best uses
โ Persistent Memcached layer
โ Speed
โ Drinking or Filling fire hose
โ Simple applications, APIs
โ When you don't want to pay for servers/disks for NoSQL only
Copyright ยฉ 2013, Oracle and/or its affiliates. 15 All rights reserved.
16. Learn More
ยง mysql.com
- MySQL Products, Editions, Training, Consulting
- TCO calculator
- Customer use cases and success stories
ยง dev.mysql.com
- Downloads, Documentation
- Forums
- Planet.MySQL.com
ยง eDelivery.oracle.com
- Download and evaluate all MySQL products
Copyright ยฉ 2013, Oracle and/or its affiliates. 16 All rights reserved.
17. MySQL Central @ Open World
โ Part of Oracle Open World
โ Learn from the best
โ MySQL Engineers
โ Customers
โ Weekday event
Copyright ยฉ 2013, Oracle and/or its affiliates. 17 All rights reserved.