performance problem with a rule
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 5.8k
- Forks
- 318
- PR merge metrics
- No merged PRs in 30d
Description
[(chain ?a ?attr1 ?attr2 ?b)
[?a ?attr1 ?i0
?i0 ?attr2 ?b]]
I have a query that can use this rule 4 times but for which I currently manually expands every potential call.
Execution time when used:
0 rules 4 expands: ~hundred ms
1 rule 3 expands: ~hundred ms
2 rules 2 expands: ~90s
3 rules 1 expand ; JVM OOP
Any idea of what could cause that?
(datascript 0.15.0)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the rule and query shown in the issue and reproduce the timing on DataScript 0.15.0, comparing manual expansion with nested rule use. Trace the query execution path to determine why two rules take about 90 seconds and three cause a JVM out-of-memory condition; done means the regression or bottleneck is identified and a verified performance improvement is demonstrated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- clojure
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100