V
V
Vitaly2016-09-05 21:16:19
JavaScript
Vitaly, 2016-09-05 21:16:19

How to increase rethinkdb read speed?

Good afternoon everyone. Actually the subject, I get the cursor in the generator function, I get the data through the cursor next, sequential reading in my opinion looks like some kind of brake, who can tell me something about speeding up performance? what buffer can be configured when configuring. The database is running on win64.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2016-09-06
@bingo347

The cursor of any database will be slower than getting all the data in one package, the banal costs for the transport layer, compare the internal mechanisms:
1. DB, here's a request for you, give me all the data that satisfies it.
2. DB, here is a request for you, remember it, I will later ask for data on it. DB, give me the data for that query. DB, give me more data on that query. DB, give me more ...
2nd option - just the same cursor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question