-
Notifications
You must be signed in to change notification settings - Fork 60
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
Performance issues(?) #144
Comments
OK, I found out what's the problem. The first is used XDEBUG and it's slow the performance of PHP but It seems that createCursorFromResponse iterate over the results and create a cursor object. This could very cool but it's not scaleable. Why not give to improve the DX by 2 ways:
@danielmewes thoughts? |
@RoySegall if the full data set fits into memory, there are already two options for getting the result as an array rather than a cursor:
Can you try if option 2 gives you better performance? It will entirely cut out the cursor part. |
I'm working on setting up RethinkDB as a cache layer for Drupal and I saw that when I'm querying a MySQL server the response time is 0.7 seconds and when querying RethinkDB the process takes something like 1.4 seconds.
The request is for 1,000 records:
Eventually, the query is:
And as you can see I created an index for cid. which improve the query from 5 seconds to 1.4.
Profiling the query from RethinkDB side takes about 3ms so the suspect is the Driver.
Any idea?
The text was updated successfully, but these errors were encountered: