[
https://issues.apache.org/jira/browse/SOLR-18307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151508#comment-18151508
]
Mikhail Khludnev commented on SOLR-18307:
-----------------------------------------
For the record. Simple reproducer for early termination
[https://github.com/apache/solr/commit/45a40375aafeb477c845629f45aba6ef5754c64a]
{code}
JoinUtil + parent filter min= 508.43ms max= 547.20ms
avg= 523.47ms hits=5174
AIJoin + parent filter min= 112.67ms max= 119.40ms
avg= 115.76ms hits=5174
JoinUtil earlyTermination + parent filter min= 507.12ms max= 548.31ms avg=
530.68ms hits=4
AIJoin earlyTermination + parent filter min= 64.64ms max= 76.13ms avg=
70.47ms hits=4
{code}
> segment-parallel query time join with sidecar index
> ----------------------------------------------------
>
> Key: SOLR-18307
> URL: https://issues.apache.org/jira/browse/SOLR-18307
> Project: Solr
> Issue Type: Improvement
> Components: query
> Reporter: Mikhail Khludnev
> Assignee: Mikhail Khludnev
> Priority: Major
> Labels: pull-request-available
> Fix For: 10.1
>
> Attachments: Screenshot from 2026-08-29 18-14-22.png, hotspot.md
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Hereby I propose a new query-time join implementation
> * it's segment parallel
> * it's lazy - utilizes Two-Phase searching and beneficial from highly
> selective filter in "to"-side, as well as leap over whole "to" segments.
> * uses Lucene DocValues in sidecar - just an addition, there's no hard
> surgery on existing codebase. It's just a QParserPlugin.
> * joins crosscore, and works in cloud mode
> * may use Memory Directory for sidecar
> * writes sidecar lazily, but you can write it ahead
> * sweeps segments which are not needed anymore
> * the [simple benchmark|https://github.com/mkhludnev/aijoin-benchmark]
> demonstrates a few times gain
> WIP https://github.com/apache/solr/pull/4749
> benchmark: https://github.com/mkhludnev/aijoin-benchmark
> Caveat: during the demo 7/15/26 we evidence nearly the same size of sidecar
> index. it should be further investigated.
> Note: the name comes from Auxiliary Index Join.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]