History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: COR-1126
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Patrick Roemer
Reporter: Carl Rosenberger
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
db4o Core

Optimize constraint graph to remove ANDs between constraints if not needed

Created: 29/Jan/08 03:26 PM   Updated: 01/Apr/08 04:47 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.28

Time Tracking:
Original Estimate: Not Specified
Remaining Estimate: 0h
Time Spent - 3.5h
Time Spent: 3.5h
Time Spent - 3.5h

File Attachments: 1. Java Source File OptimizeAndQueries.java (3 kb)

Issue Links:
Related
 
Similar
 

Peers: Richard Liang
Order: 4
Iteration: 28
Original IDS Estimate: 2
Resolution Date: 06/Feb/08 06:11 PM
First Response Date: 01/Feb/08 08:36 PM
PSC Recommendation: A5
Labels:
Participants: Carl Rosenberger and Patrick Roemer
Number of Attachments: 1
Number of Comments: 2


 Description  « Hide
If there are no OR constraints in a query, all constraints are ANDed implicitely anyway.

It is a very simple and strong optimisation to remove all ANDs between constraints, if there are no ORs.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Patrick Roemer - 01/Feb/08 08:36 PM
Attached minimalist "benchmark" for simple and/or joins

Patrick Roemer - 01/Feb/08 08:38 PM
Todo:
- Refactor against existing OR join detection code in QCon?
- Come up with an outside test case?
- Benchmark against variety of cases