| Summary: | Extremely inefficient SQL code generation for exist joins | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | APB <brusseau> |
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
APB
Woops, this is the named query that is generating the SQL, I forgot in the original post. The following named JP QL query: @NamedQuery(name = "GAFAssertionTerm.TOUWithFunction", query = "SELECT DISTINCT a FROM GAFAssertionTerm a, FormulaTerm ft " + "WHERE (a.formula = ft) AND (ft.arg0 = :arg0) AND (ft.formulaType = :gaf) AND " + "EXISTS (SELECT DISTINCT ft2 FROM FormulaTerm ft2 WHERE (ft.arg2.itemId = ft2.termId) AND " + "(ft2.arg0 = :function))"), Actually this is the named query in question, the previous one was a mistake. I sure wish bugzilla let one edit messages 8-( @NamedQuery(name = "GAFAssertionTerm.TOUWithFunction", query = "SELECT DISTINCT a FROM GAFAssertionTerm a, FormulaTerm ft " + "WHERE (a.formula = ft) AND (ft.arg0 = :arg0) AND (ft.formulaType = :gaf) AND " + "EXISTS (SELECT fe FROM FormulaEntries fe WHERE (ft.arg2 = fe.formulaItemId) AND " + "(fe.arg0Term = :function))"), Im closing this and reopening with better comments. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |