Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Done
-
None
-
None
Description
Query objects that contain aggregators (Group By) cannot be reused by different threads because the internal state is mutable. Even reusing a query object in the same thread has problems, because it creates a new Aggregator object each time you execute the query. Users may want to reuse Query objects to save having to reparse the query string.
I believe the solution is to copy the aggregators when compiling the query. I've attached a patch that does that in the AlgebraGenerator.compileModifiers() method.
See the thread at [1] for more discussion.
Attachments
Attachments
Issue Links
- relates to
-
JENA-121 Improvements to Bindings
- Closed