Bug #3288

Updated by Michael Kay 3 months ago

Although bug #3281 is now fixed, investigation of the bug showed a performance problem with streamed group-by. Specifically, there will be a Watch registered with the WatchManager every time a new group is encountered, and on each startElement() event, the WatchManager will go through this list of Watches sequentially to determine which of them match. Most of them won't match, but the cost of this search will increase with the number of groups, so applications involving a very large number of groups will become very inefficient.