|
|
|
|
|
by coffeemug
4575 days ago
|
|
> Also, i am assuming 90ms per structure, if that is correct, then that is equal to 11 inserts per second which is unfortunately very slow.. You can't quite divide like that. In Rethink r.table('users').insert({ 'name': 'Bob' })
r.table('users').insert({ 'name': 'Jim' })
is much slower than the equivalent batched insert r.table('users').insert([{ 'name': 'Bob' },
{ 'name': 'Jim' }])
The latter isn't subject to network round trips and can batch disk writes, drastically increasing performance relative to multiple individual writes. You can see a similar effect in most other database systems.There other nuances to this -- the complexity of measuring things properly is why we haven't published benchmarks to date. Check out this doc on insert performance for more details: http://rethinkdb.com/docs/troubleshooting/#my-insert-queries... |
|
I am very aware of the increase in performance of batch inserts and batched disk writes and so on.. as an individual who has worked on the development of a major DBMS.