Follow Us

Oracle rigs MySQL for NoSQL-like access

Much-anticipated entry into the NoSQL fray may be fuelled by Memcached

Oracle may introduce its own NoSQL database at this week's OpenWorld conference in San Francisco.

While Oracle thus far has been quiet about the rise of the NoSQL database movement over the past few years, its developers have been at work devising ways to bring NoSQL-like speed and flexibility to its MySQL open-source database and speculation has been running rampant about Oracle's foray into the market.

For OpenWorld, Oracle has scheduled a number of sessions and demonstrations devoted to something called the Oracle NoSQL Database. The work that the company has done thus far to equip MySQL with NonSQL functionality might provide a clue as to the nature of this new offering.

Oracle's work has focused on combining the responsiveness of NoSQL systems with the full range of options of SQL-based systems such as Oracle's own.

Oracle's potential secret weapon for revving SQL to NoSQL speeds? The Memcached caching technology, which Facebook and many other services already use. The company is looking at at least two ways of combining Memcached with its open-source MySQL database.

Speed and performance

NoSQL databases have been commonly praised for the speed at which they can serve and ingest data, when compared to the performance of traditional SQL systems such as Oracle's. However, they lack a common interface for language for working with data, something that SQL provides.

Also, unlike NoSQL, SQL also provides a set of properties, called ACID (atomicity, consistency, isolation, durability) that mathematically ensures that each database transaction is handled reliably.

In an interview in May with the IDG News Service, Tomas Ulin, Oracle vice president of MySQL engineering, described a project to bring the NoSQL-like speed of access to SQL-based MySQL.

"We feel very strongly we can combine SQL and NoSQL," he said. "If you have really high-scalability performance requirements for certain parts of your application, you can share the dataset" across both NoSQL and SQL interfaces.

The key to Oracle's effort is the use of Memcached, which internet-based service providers, Facebook being the largest, have long used to quickly serve MySQL data to their users. Memcached creates a hash table of commonly accessed database items that is stored in a server's working memory for quick access, by way of an API (application programming interface).

Key-value lookup

Memcached would provide a natural non-SQL interface for MySQL, Ulin said. Memcached "is heavily used in the web world. It is something webmasters already have installed on their systems, and they know how to use it. So we felt that would be a good way to provide NoSQL access," Ulin said.

Oracle's thinking is that the Memcached interface can serve as an alternative access point for MySQL itself. Much of the putative sluggishness of SQL-based systems actually stems from the overhead of supporting a fully ACID-based query infrastructure needed to execute complex queries, industry observers said. By providing a NoSQL alternative access method, Oracle could offer customers the best of both worlds - a database that is fully ACID-compliant and has the speed of a NoSQL database.

With Memcached you are not accessing the data through SQL, but by a simple key-value lookup. "You can do a simple key-value-type lookup and get very optimal performance," Ulin said.

The technology would not require any changes to MySQL itself. "We can just plug it in," Ulin said. He added that Oracle was considering including this technology in the next version of MySQL, version 5.6.

HandlerSocket

One precursor to Oracle's work is a MySQL technology developed by developers outside of Oracle, called HandlerSocket, which also used Memcached as the basis of MySQL access, said Peter Zaitsev, the founder and CEO of MySQL service provider Percona.

With HandlerSocket, "you could get close to one million lookups per second on a single server, which is almost 10 times what you could get with a MySQL interface," Zaitsev said. Percona has already installed HandlerSocket in its own customised MySQL implementation, Percona Server.

Oracle's own planned NoSQL access for future editions of MySQL would draw heavily from HandlerSocket, though it would stick more closely to the Memcached API, Ulin said.

In a different project, Oracle developers have also devised a similar Memcached setup for MySQL Cluster, the fault-tolerant edition of MySQL designed to run across multiple servers.

At the NoSQL Now conference, held in San Jose August, Oracle MySQL developer John David Duncan outlined a number of earlier attempts to provide alternative non-SQL access to MySQL Cluster, including the Java-based ClusterJ and a JSON (JavaScript Object Notation)-based module called mod_ndb. Both of these approaches were cumbersome, whereas the Memcached API seems to provide a natural wrapper for the MySQL, he noted. Currently the company offers a preview edition of MySQL Cluster version 7.2 with a Memcached interface.

"We thought any MySQL Cluster can natively provide performance that is closer to Memcached than MySQL server," he said. The cluster in fact provides a way of making the Memchached cache persistent, meaning it will not disappear should the servers lose power. "We can achieve the performance you would expect from Memcached," he said.






Send to a friend

Email this article to a friend or colleague:

PLEASE NOTE: Your name is used only to let the recipient know who sent the story, and in case of transmission error. Both your name and the recipient's name and address will not be used for any other purpose.

Techworld White Papers

Desktop modernisation

On the one hand, there is the need to keep the existing desktop environment efficient, secure...

Download Whitepaper

Top 10 myths about virtualising business-critical applications

Even though virtualization has brought positive change to enterprise IT over the last decade,...

Download Whitepaper

Aligning CFO and CIO priorities

Forward-thinking organisations are viewing cloud computing as an investment in business...

Download Whitepaper

The new corporate network

Businesses can’t afford to have employee productivity suffer because they cannot use their...

Download Whitepaper

Techworld UK - Technology - Business

Techworld Awards

Techworld Awards 2012
Coming Soon

Opening for submissions May 2012

 

Find out more

Techworld Mobile Site

Access Techworld's content on the move

Get the latest news, product reviews and downloads on your mobile device with Techworld's mobile site.

Find out more...
LogMeIn Rescue

Accelerate Your IT Efficiency

View the latest capacity management resources including whitepapers, videos and news.

Find out more...

Site Map

* *