-
Notifications
You must be signed in to change notification settings - Fork 871
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
Speed of Lucene index is lost by expand function #7880
Comments
Hi @rdelangh this is because the
does not load the records from disk. Just use the lucene index for counting. when you use this
24830 records are loaded |
hi Enrico, |
Hi @rdelangh can you attach here the explain of
|
hello @maggiolo00 Profiled command '{projectionElapsed:0,optimizationElapsed:148849,expandElapsed:25,user:#5:0,tips:[1],elapsed:148848.98,resultType:collection,resultSize:1}' in 148.865005 sec(s): |
OrientDB Version: 2.2.27
Java Version: n/a
OS: Ubuntu
Expected behavior
Using a Lucene provides very fast lookup of the rowids. Trying to get usefull information from the record-columns based on these rowids, should require only slightly more time.
Actual behavior
orientdb {db=cdrarch}> SELECT count(rid) FROM INDEX:idx_myindex WHERE key LUCENE ' columnA:2219 AND columnB:[2017110608 TO 2017110610] '
+----+-----+
|# |count|
+----+-----+
|0 |24830|
+----+-----+
1 item(s) found. Query executed in 0.468 sec(s).
orientdb {db=cdrarch}> select count(*) FROM (SELECT expand(rid) FROM INDEX:idx_myindex WHERE key LUCENE ' columnA:2219 AND columnB:[2017110608 TO 2017110610] ')
+----+-----+
|# |count|
+----+-----+
|0 |24830|
+----+-----+
1 item(s) found. Query executed in 95.189 sec(s).
Steps to reproduce
The text was updated successfully, but these errors were encountered: