8 ms·
Why are Oracle and DB2 still on top of TPC-C? A roadmap to end their dominance.
- spitfire 15y agoI haven't read the full paper yet. But this sounds like a winner to me. It's actually not a database, but a transaction scheduling system sitting in front of the databases. Hopefully these sort of ideas make it into Postgres for scalability.
- tlogan 15y agoThis might useful for database as a service offerings. If that trend pick up the steam. BTW, I think Oracle and DB2 are still on top of TPC-C is because you really don't need any faster database for OLTP than they are now. The maximum number of customers any online shop will not exceed 4 billion... The need for faster OLTP is just not there. Warehousing and big data is a different beast... Oracle did not invest to make faster OLTP but faster OLAP...
- spitfire 15y agoI think that's the point. The idea that you need a different database for OLTP vs OLAP, vs whatever is a technological one. Not a conceptual one. Operationally, if you had the freedom you'd ideally like to have just one database that can handle everything, storing data in appropriately accessible formats (relational, time-series. key-value, document, etc). This is getting commodity open source databases up to that level of "don't care, it's fast enough" for OLTP. Then on to all the other workloads. Think of it like the move from C/C++ to dynamic languages like python or lisp as cpu's got faster. Cool beans.
- jhugg 15y agoIf you count OLTP as "a system that places orders created by people", then you might be right. As a VoltDB eng, we see lots of OLTP workloads that require much more throughput than legacy RDBMs can offer on a single system. How many transactions do you think it requires to pick which ads to show you on a webpage? How many updates to your Farmville-style game state are required per minute? How many concurrent users? What about MMOs? Are financial exchange orders OLTP? If so, you have a six-figure TPS problem. What about sensor data? Network packet monitoring? Call data record dashboards?
- tlogan 15y agoYes there is a market but it is not very big. There is only one Zynga. Also note that some of examples you mention are very well solved by streaming databases (Streambase) and event processing systems (which are sold as add-on to databases).
- jhugg 15y agoA big part of my job is talking to people who have scale pain with legacy systems. I don't know what percentage of the DB market this is, but it's nontrivial and growing fast. Most of the markets I mentioned in the previous comment are nearly impossible to be successful in with a single node of legacy RDBMS sitting behind your app. Zynga is far from alone in social gaming scale pain. Consider digital ad-tech. How many ads do you have to show before someone clicks on one? How many clicks do you need to earn $1? That can translate into: The cost of all those DB operations needs to cost way less than $1 or I'm hosed. Enter systems that can scale with less pain. Streambase is a good example of a specialized system that can outperform legacy RDBMSs. Still, it's not like you can say, "All financial problems in scale pain can fix everything with Streambase." It's too specialized. What if you need 100gb of state? There are lots of problems in finance and some of them can be solved with Oracle/DB2 while others can't.
- peapicker 15y ago"How is technology designed decades ago still dominating TPC-C?" -- this assumption does not take into account that the engine underneath the technology interface design can change and evolve for new technologies to some extent. Additionally, the reason these two are at the top of the heap is that Oracle and IBM both put a great deal of money not only into the software, but into designing and producing the machines that run these tests, the filesystems and operating systems, etc -- it is a total package with a driving focus related to database performance; these tests are run on multi-million dollar machines made by those companies. Until you have a complete end-to-end ecosystem, with a focus on everything from the hardware, through the OS, all the way to the DB, you probably aren't going to beat them with any 'new' technology... If a 'new technology' does beat out the traditional, I will expect the products that will be at the top of the performance curve, for the near future (10yrs) to also come from IBM and Oracle... Especially since Oracle has already release an ACID noSQL db engine that is also tightly wedded to their full ecosystem. (IBM may have as well, but I didn't notice if they did)
- jhugg 15y agoIt is, surely, difficult to create a product that is better than Oracle/DB2 in every dimension. These systems have thousands of engineer-years of work baked into them. On the other hand, it's pretty easy to beat these systems by specializing. Take some part of what they do and do it better. [Insert sports car / minivan / mack truck analogy here] The interesting question is whether the pain of using the new system is less than the pain of using the old system. New system pain often comes from having fewer features or a less robust implementation. Legacy pain often comes from managing software that has to maintain compatibility with 20 year old apps and scaling workloads on software designed when 8mb of ram was a lot and clusters weren't practical. I will also say from experience, if you take a copy of Oracle and the same hardware from the TPC-C leader board, you will have a hell of a time replicating their results. They use every trick in the book and spend huge sums of money tuning for these benchmarks (n.b. I don't fault them). In practice getting throughput close to what they claim on actual real-world apps is not realistic. Now, you should take all benchmarks with a grain of salt (even mine). Ask a vendor how fast the system will run on a real workload that you understand with the configuration you plan to deploy with. If their number is attractive, build a POC and check for yourself.
- gouranga 15y agoTwo reasons: 1. TPC-C is a vendor sponsored cock measuring competition that noone other than marketing people take seriously. 2. Most people scale out rather than scale up so it's pretty much irrelevant as it considers monolithic computing only. TPC-C is from the dark ages...
- gaius 15y agoHe mentions that "scale-out" is much harder when you have atomic transactions spanning more than one "shard".
- gouranga 15y agoHarder yes, but not impossible.
- huggyface 15y agothat noone other than marketing people take seriously Plenty of people take it seriously. I take it seriously. Most people scale out rather than scale up so it's pretty much irrelevant as it considers monolithic computing only. Yet the top results are clusters. You're 0 out of 2. Any more wisdom about TPC? It's also worth considering audiences: If you're a web scale company holding recipes for millions of free accounts, you're a bit different from a hedge fund churning performance results for your investor results statements. Judging the latter from the perspective of the former is asinine.
- gaius 15y agoHave you not just reinvented CICS?
- ExpiredLink 15y agosort of > Calvin is not a database system itself, but rather a transaction scheduling and replication coordination service. We designed the system to integrate with any data storage layer, relational or otherwise.
- JoachimSchipper 15y agoIf you mean http://en.wikipedia.org/wiki/CICS http://en.wikipedia.org/wiki/CICS, that does look similar. From a quick look at the Wikipedia page, it does not appear to be a very distributed system, though.
- noselasd 15y agoYou can scale it pretty amazingly, though only on homogeneous IBM mainframes.
- sixbrx 15y agoLooks very interesting. The "limitations" are especially interesting: "Calvin’s primary limitation compared to other systems is that transactions must be executed entirely server-side. Calvin has to know in advance what code will be executed for a given transaction." Also the author mentions in the comments that certain non-deterministic functions such as fetching random numbers of current date/time will not be allowed within the server-side transactions, the client will have to pass such values to the server.
- stephen 15y agoSounds like event sourcing [1] applied to databases. The server-side transactions reminded me a lot of VoltDB [2], which also has server-side transactions and turns out was a previous system Abadi was involved in. My naive impression is that VoltDB is more about being in-memory, single-threaded, and lock-free, where as this Calvin approach is more about deterministic ordering of events. Sounds really cool, but there is a reason people don't like writing stored procedures. Besides (historically) meaning you're forced into a non-general programming language, it means you can't do anything else while executing the logic (call out to a 3rd party, read a file from somewhere else, etc.). While SQL has its flaws, the semantics of writing your application logic freely over multiple queries ("make a query, do some work, make a query, do some work, ... commit!") and having the database just make that magically work for you is pretty darn nice and not something I'd easily give up. Maybe a heavy dose of optimistic locking and a pleasant/mostly automated process of coding/integrating/deploying the stored procedures would make it possible to get all the performance benefits of their approach. It does sound pretty smart. [1]: http://martinfowler.com/eaaDev/EventSourcing.html http://martinfowler.com/eaaDev/EventSourcing.html [2]: http://voltdb.com/ http://voltdb.com/
- zzzeek 15y agoIt does say it supports ad-hoc Python blocks. I can see the potential for Python frameworks/ORMs being able to "export" a series of instructions over to such a system, or alternatively allow the object-relational/database abstraction layer to just run on the server side to start with. If you can produce a DBAPI-like API on the server, then ORMs like SQLAlchemy and maybe others should be fully usable within that environment. Client-server communication might use some kind of RPC-like system. Depending on how flexible the Python environment is, the client system could send over blocks of Python code on the fly which gets cached, making the system almost transparent.
- SpikeGronim 15y agoVendors rig these benchmarks to death. An ex-coworker of mine worked on a major proprietary SQL db. He told me that they spent 6 months with both software and hardware vendor engineers optimizing for the benchmark. They put TPC specific code in the query planner!
- kyberias 15y agoCan someone explain why the IBM machines on the list are running AIX operating system and Microsoft's COM+? I thought COM+ was Windows thing.
- DrJokepu 15y agoThis answer on Stackoverflow explains it: http://stackoverflow.com/a/401999/8954 http://stackoverflow.com/a/401999/8954
- kyberias 15y agoSorry, no, it doesn't explain it at all! I already know COM+ is delivered on Windows 2000 and above. But the TPC benchmark table talks about AIX, which is a Unix, not Windows! Why do they say AIX, not Windows if they're running COM+?
- DrJokepu 15y ago"In fact, it's usually used as the TP monitor in TPC-C benchmark systems because it's more efficient than .Net or Java and much cheaper than Tuxedo or Encina (which reduces the $/TPM)."
- kyberias 15y agoSo are they running Windows boxes but it's nowhere to be seen? Only AIX is mentioned.
- jacquesm 15y agoCould someone please explain the sentence at the bottom of page3 of the pdf? It reads: "This decoupling makes it impossible to implement certain popular recovery and concurrency control techniques such as the physiological logging in ARIES and next-key locking to handle phantoms (i.e. using physical surrogates for logical properties in concurrency control)." Also: the pre-fetch trick where the read request is sent to the storage layer pre-emptively with an artificial delay for all dependent operations is clever but could be derailed quite a bit when a drive re-calibrates. That can take a large multiple of the time a seek typically takes (which is the case you'd be optimizing for here).