New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow tables without primary key #39
Comments
Comment by yoshinorim Here are basic design plans. Since some data dictionary format change is needed, it makes some sense to add this feature before GA.
RDBSE_KEYDEF member functions
|
Comment by jkedgar By using an auto increment key you have to store the last (or next) value somewhere and protect it with a mutex when incrementing it, potentially causing a bottleneck in the code. What about instead of an auto-incrementing column using a 64-bit random value? There would be a very small chance of picking a value that is already in use, but if that occurred you would just get a new value during insert. I'm not sure what our maximum number of rows in the database is, but even at 100 billion rows, only about 0.000000005% of the possible values would be used making the chance of duplicates still very small. The pros:
The cons:
|
Comment by yoshinorim
|
closed by https://reviews.facebook.net/D52839 |
Issue by yoshinorim
Wednesday May 06, 2015 at 00:48 GMT
Originally opened as MySQLOnRocksDB#63
Figure out how realistic it is to create a hidden auto_increment primary key, if not specifying primary key in DDL, instead of returning an error.
The text was updated successfully, but these errors were encountered: