Re:RethinkDB is shutting down
by overgard on Thursday October 06, 2016 @09:35PM
(#12657537)
Here's two actual concrete problems: efficiency and type safety. Indexing an array with "1.5" doesn't seem awesome, nor does using 8 bytes for a double where a 1 byte int would do fine.
[ Parent
| on HN ]
Re:RethinkDB is shutting down
by SamReidHughes on Thursday October 06, 2016 @10:26PM
(#12657703)
A double with integral value in 127..127 already takes 2 bytes to store in rethinkdb (the first being a tag distinguishing between array, object, string, etc), compared to some random double's 9 bytes. The type safety advantages of distinguishing doubles from integers are pretty minimal in a database, because you'd need a schema for that anyway, and the benefits of that far outweighs the add-on benefits of having type checked query logic.