Repository navigation
Oracle: compile a Cypher statement knowing the graph's labelled indexes, so a keyed MATCH reads the node through its index - #593
Merged
Conversation
…dexes, so a keyed MATCH reads the node through its index
…mpile, the transaction, the schema plan's signal and a compile knowing no index
…se Oracle answer gives the labelled indexes' query Tests of what else an Oracle session is given, which count its statements, read no labelled index.
…oined as a CLOB, as drivine4j's OracleSql.text writes it A statement compiled knowing a graph's labelled indexes, with a batch's rows written in, is longer than the 32,767 bytes a PL/SQL literal holds (PLS-00172).
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #508
On Oracle, a Cypher statement run through a connection was compiled without the graph's labelled indexes, so a keyed
MATCHsuch asMATCH (a:Person {id: row.s})read every node of the label, once for each row of anUNWIND. Importing a batch of 20 relationships the wayapoc.export.cypherwrites them took 137 s instead of 0.16 s.Now the Oracle connection reads the graph's labelled indexes (each label and the property an index begins with) before compiling a Cypher statement, and compiles knowing them. The compiler then writes a key equality as the index's own expression, and Oracle reads the node through the index.
storeStatements, new in drivine-cypher-compiler 0.53.0. This PR moves the pin to 0.53.0 and copies the Cypher spec at v0.53.0. No catalog SQL is written in Python.CLOBparts. A statement compiled with the index expressions, with a batch's rows written in, is longer than one PL/SQL literal holds.drivine4j's
OracleIndexedPropertiesis the reference. Its cache tests are ported.Tests
tests/integrationwith Oracle on: 4703 passed. The one failure was the plan helper's literal limit, fixed above. The Oracle plan tests rerun after that fix: 227 passed.tests/sync_integrationwith Oracle on: 4634 passed, 290 skipped, 0 failed.Review: 6 passes, last CLEAN.