2011 was the second year in a row I’ve attended the New England Database Summit at MIT. This year’s conference included speakers from Vertica, Greenplum, SciDB, NimbusDB, ETH
Enter Crescando. Crescando is a distributed relational table implementation utilizing a single horizontally partitioned table. The system is designed to scan. Constantly. It actually scans the entire dataset once a second. While a traditional RDBMS approach creates an individual query plan for every query, Crescando takes all the queries that occur each second and batches them together. It then runs those queries against the data gathered by the most recent scan, and returns the appropriate data; all in one second. Indexes are then created or updated using those batches. However, unlike traditional systems, the indexes are built on the queries, not the data.
This approach does result in a poor minimum response time, but it achieves a predictable response time that Kossman has deemed “good enough”, and meets his SLAs. I found this to be an interesting concept and one that makes sense for certain problem domains. A clear downside is the high energy use and the likely shorter life of CPUs and disks as they receive no downtime. An intriguing quote by Kossman was one that prompted the project: “how can you index the data if you don’t know what all the queries will be?” It’s a good question, and although representative query sets are great for index tuning SQL Server, they don’t provide the predictability demonstrated by Crescando.
Kossman’s team took this idea further with a concept called SharedDB. This is the implementation of query joins built on Crescando. Each second, as the queries are batched, a group of join conditions are collected from the queries. All of the joins are then performed, and then applied to that batch’s queries. Kossman claims to be able to do 4000 joins at once.
Lastly, Kossman talked about a system called SwissBox that is still conceptual at this point. It uses a homegrown OS called Barrelfish utilizing a multi-kernel architecture. The team will run Crescando on these multi-core boxes. Their distribution layer helps route their transactions to the instances of Crescando, which generally communicates with all cores on all boxes each second. The concept aims to achieve radically simplified data flow architecture without traditional indexes. Merge db and application server layers will be used as an intermediate layer to “shape the workload” before it hits the database, rather than just let the workload hit the db server. In summary, SwissBox would be a new way to process queries, provide massive parallelization and predictable performance along with massive sharing of scans and query processing. It won’t be optimal for all applications as it subscribes to the principle of “Good Enough”.
http://www.amadeus.com/
http://www.ecc.ethz.ch/research/largescalemainmemorydb
http://www.cidrdb.org/cidr2011/Papers/CIDR11_Paper4.pdf
I didn’t find the second keynote nearly as impressive and innovate as the first. Perhaps it was the post lunch food coma, but RenĂ©e Millers talk, On Schema Discovery, was not something I related to very well. It was a very detailed, yet dry, presentation of methods to auto-magically learn about relationships within a dataset. The work she’s done at the
http://dblab.cs.toronto.edu/project/CIDAQ/
http://dblab.cs.toronto.edu/project/limbo/
Margo Seltzer, from Harvard, presented Provenance Everywhere, in which she talked about her project at the OS level to provide a complete history of files on a computer. During her energetic talk, she pointed out the importance of provenance in our everyday lives, but especially when it comes to data. An example of a provenance disconnect we currently have is that users who unwittingly download virus files have no way of knowing from where the file was obtained. The browser has a history of the website, but it is not tied to the file on the user’s computer. Seltzer’s work is a project that would allow for communication between applications and the OS, providing a complete history of a file on the computer. With her system, you would be able to see where and when you downloaded the virus file, and even look into that web browser session and see if there were any other files downloaded from that same harmful site. This was a great talk and posed some thought provoking questions.
http://www.cs.cornell.edu/~jnfoster/papers/onward-provenance.pdf
CryptDB: A Practical Encrypted Relational DBMS was an interesting project presented by Raluca Ada Popa. The projects goal is to allow un-trusted sources to query an encrypted db. CryptDB is actually a client frontend that resides in front of the existing db server which handles all the data going in and out of the db. All of the data in the db is stored as encrypted data, and through different layers of protection, it actually executes most queries without decrypting the underlying data. Data is only decrypted when it is presented to the user after passing back through the CryptDB front end. A downside of the added security provided by CryptDB is performance. Tests conducted by the project team showed a twenty seven percent performance degradation.
IFDB: Database Support for Decentralized Information Flow Control was a second security based presentation. David Shultz discussed this system, located between web apps and the client, that filters data before it is released to the user. IFDB operates by storing groups of tags called labels in every row. These labels act as access control; the labels of each row define what data can be seen by a given query, which posses their own labels based on the logged in user. Inserts posed problems that were handled using poly-instantiation. If a user attempts to add a duplicate record and does not have access to the original, a duplicate error record would give away the fact that the record exists, which in some cases would be a breach of confidential information. Instead, IFDB allows duplicate records to be inserted. Personally, this sounds like a risky proposition that could cause significant data consistency errors in the system.
Emmanuel Cecchet presented Dolly: Virtualization-driven Database Provisioning for the Cloud. Dolly allows the addition of db server replicas through cloning rather than a backup/restore. The user provides the number of replicas they believe will be needed, when they’re needed, and what the workload will look like. Dolly does prediction to determine when would be best to perform cloning. One of the major benefits of Dolly is that it allows the system to scale only when needed, avoiding over-provisioning; saving money.
http://lass.cs.umass.edu/papers/pdf/dolly-vee11.pdf
Jim Starkey, famed Database Architect spoke about his new startup in Databases in 21st Century: NimbusDB and the Cloud. As the talk’s title implies, NimbusDB is a cloud based database solution. The majority of database engineers believe that ACID transactions are impossible in the cloud. Starkey claims to have come up with a solution; he’s a firm believer in atomicity. Overall, this was a poor presentation, full of all new terms they’ve come up with, leading to a somewhat confusing and simultaneously vague overview. It would have been great to see some real examples of the technology, as the goals and highlights of it sound very promising.
http://www.nimbusdb.com/
http://www.firebirdsql.org/doc/whitepapers/fb_vs_ibm_vs_oracle.htm
Adam Marcus presented what turned out to be an optimization for Amazon.com’s MechanicalTurk system called Qurk: A Query Processor for Human Operators. MechanicalTurk is a platform for human intelligence tasks that allows people to pay small amounts for work as simple as data entry or photo identification. Qurk is software that helps a user to interface with MechanicalTurk through user defined functions in a database. These UDFs help export the data in a format to increase efficiency or accuracy, or decrease cost.
http://www.mit.edu/~eugenewu/files/papers/qurk-cidr11.pdf
Robert Soule’s talk Distributed CQL Made Easy, turned out not to really be a database solution. In his view, stream computing should be handled through a “language solution”, not a database solution. His language solution is an intermediate language he calls River. Streaming SQL, written in CQL, is converted to a language River can use. His goal is to create a language for stream computing that is application and platform agnostic.
http://cs.nyu.edu/brooklet/
Paul Brown spoke next about his project, SciDB in SciDB: Towards a Terabyte Matrix Multiply . Paul was the only speaker this year that is recurring from last year. His talk last year was also about SciDb, which I found very interesting. Last year, this database system had not yet been released, but this array based, massively parallel, open source database system is now available for download. He used the talk to challenge the audience to come up with the solution to quickly transpose a 1T square matrix. Right now on 1 gigaflop machine, it will take about 500 days. He’s hoping the community can help SciDB to make progress on this front.
Using Learning Models for Query Performance Prediction. Created a learning based Query Performance Prediction that is touted to be more accurate that analytical cost models. It was a very abstract presentation that discussed the mechanisms in which they believe they have a better prediction model.
Mingsheng Hong came to speak from Vertica, one of the event’s sponsors. Automated Physical Database Design in Column Stores. Hong was very well spoken and began with a quick overview of column store databases. He highlighted the difference between indices and materialized views in a row store database and what are called projections in a column store database. Projections support segmentation across the db cluster, column sorting, and per column compression schemes. Vertica has seen increased adoption in the internet gaming, telecomm, and financial services sectors.
The point of the talk was to discuss Vertica’s new Database Designer (DBD). This is a new tool developed by Vertica to help automatically configure the databases and projections. In financial services, the DBD has been shown to speed up queries by four times vs. manual designs. Storage was shown to be fifty percent less. This huge success decreases the design cost from several months to just four minutes. Similar increases in productivity have been realized in other sectors as well.
http://www.vertica.com/
The final presentation was Sivaramakrishnan Narayanan’s Dynamic Prioritization of Database Queries. Siva came to speak from Greenplum. He argued that some queries deserve first class treatment, others not so much. Since databases have mixed workloads such as OLTP, OLAP, reporting, and ad-hoc queries they wanted to make sure resource usage is inline with business value. They achieve this alignment by putting weights on queries and matching CPU usage with each query’s weight.
http://www.greenplum.com/
The summit was yet again well organized and a great way to learn about some of the newest developments and research in the database world. Its attendance of somewhere between two and three hundred people is testament to this and I look forward to attending next year's event.