perf(sql): share repeated computations in lateral join decorrelation#6941
Conversation
Thanks for review! All review findings addressed, including correctness fixes, resource cleanup consistency, defensive assertions, and vectorized GROUP BY test coverage. Ready for re-review. |
|
@kafka1991 — detailed review below. PR #6941 Review:
|
|
All critical and moderate review items addressed. @bluestreak01
Fixed. (
Not needed. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
[PR Coverage check]😍 pass : 1676 / 2098 (79.89%) file detail
|
tandem: https://github.com/questdb/questdb-enterprise/pull/977
Summary
QueryModelWrapperreferences that share the same underlying model, and introducesSharedRecordCursorFactoryso the shared model executes only once at runtime.GroupByRecordCursorFactory,GroupByNotKeyedRecordCursorFactory, vectorizedGroupByRecordCursorFactory/GroupByNotKeyedVectorRecordCursorFactory,AsyncGroupByRecordCursorFactory,AsyncGroupByNotKeyedRecordCursorFactory, and pass-through viaSelectedRecordCursorFactory.