Is this SQL databases or No-SQL?
Is this SQL databases or No-SQL?
Posted Apr 10, 2014 10:02 UTC (Thu) by nix (subscriber, #2304)In reply to: Is this SQL databases or No-SQL? by Wol
Parent article: A discussion between database and kernel developers
The other place you will score is indices. Your optimiser will spot it needs to scan INVOICES multiple times, and it will build indices on the fly if they don't exist.You need to use some actual databases, rather than just reading Codd and assuming everyone implemented what he suggested. While doing that (incrementally, no less) would be really cool, nobody ever does that and I don't know of any database system that implements it. Indices are explicitly-constructed entities.
Yes, this does mean that in a lot of databases you end up with a rule that on particular large tables all queries must use an index, and often the database can even enforce that rule. But... you can have more than one index, allowing for more forms of lookup than just primary-keyed, and you can still have totally ad-hoc queries on smaller tables.
As far as I can see, Pick throws all that flexibility away. I can easily see myself having to rethink half an application because I want to add one query, since oops now I need to change what the primary key is! This seems very far from ideal.
(Disclaimer: I work for Oracle now, but in the period of my life when I did things with databases, I didn't.)
