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
indexWait
just after indexCreate
takes 10 seconds
#2170
Comments
I can reproduce this. |
@danielmewes I've also see something interesting but that I've seen it only with rethinkdbdash. If I do a I haven't tried to reproduce it with the official driver though, but I don't think this is a bug in my driver. |
Ok so the 10 seconds duration is because that's the polling interval for From src/rdb_protocol/terms/sindex.cc:
|
The reason for why you didn't see it with 1.11 is very likely that sindex creation now uses hard durability (it was part of the fix for #2071). That means that it's waiting for i/o, which it didn't do in 1.11. As a consequence, when you run I think we might want to change how the polling period works (poll more frequently initially, and then increase up to a maximum of 10s or something), but apart from that this doesn't seem to be a bug. |
The thing where you can't use an index even after |
The script below throws something like one out of four times.
|
Related: #2179 |
The fix for both the broken |
In a table with 100 documents with two fields (
id
andfield
--field
is set to 0 or 10)Takes 10 seconds to complete on 1.12 while it takes 2ms on 1.11.
The data explorer execute the queries in a synchronous way.
However, if I drop, create the index, and then paste the query with
indexWait
(so leaving something like 1 second between the queries),indexWait
immediatly returns.Also, it seems to always take 10 seconds even if I add more documents.
Putting in 1.12.x
Not sure to who this issue belongs to, but I guess @danielmewes it's yours. Feel free to reassign the issue if I'm wrong.
The text was updated successfully, but these errors were encountered: