-
Notifications
You must be signed in to change notification settings - Fork 20
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
Query aborts when there are many results #142
Comments
Based on this issue I'd say that the client closed the connection prematurely, which is what the exception signals on the server side. Any reasons why the client would terminate the connection? |
I wouldn't know why it would, my code is something really simple along the lines of client.query(
Query("entity.name")
.select("*")
.where(Expression("column", "=", "value"))
)
|
Mhm but then you'll iterate over the results, I suppose, or don't you? When is the exception thrown? Before starting to iterate or during? Do you exhaust the TupleIterator or do you cancel it? |
I just iterate over the results. |
I'm afraid I cannot reproduce this with the data I have here. Do you perform some processing in your loop? If, for example, I try to export 2'000'000 entries for an entity using CLI (which also uses the If this message is thrown by the Cottontail DB server, it indicates that the connection was closed from the client-side. So there must be something that causes this implicitly or explicitly. |
The client doesn't do anything special, it was really just val result = client.query(
Query("entity")
.select("id")
.where(predicate)
)
val ids = mutableSetOf<Long>()
while (result.hasNext()) {
val id = result.next().asLong("id") ?: continue
ids.add(id)
}
|
When submitting a query that would return several 100k rows, the query aborts with the following stack trace:
The text was updated successfully, but these errors were encountered: