| Select from partition ? [message #756678] |
Mon, 14 November 2011 11:08  |
Krzysztof Kowalczyk Messages: 113 Registered: July 2009 |
Senior Member |
|
|
Hi,
I have an application running on Oracle and EclipseLink 2.1(if really needed I can upgrade it) using the old ExpressionBuilder api. I would like to optimise a long running query to use only one known partition.
Is it possible to construct a query that use both: a bit of native SQL (From x partition(y)) and ExpressionBuilder api for the rest of query?
Regards,
Krzysztof Kowalczyk
|
|
|
| Re: Select from partition ? [message #757803 is a reply to message #756678] |
Mon, 21 November 2011 13:12  |
James Sutherland Messages: 1844 Registered: July 2009 |
Senior Member |
|
|
It is probably better to use an SQL query then try to mix objects and SQL.
You can use the getTable() API to get a table reference, but I don't think you could generate what you want. EclipseLink's AsOfClause does do something similar in syntax.
James : Wiki : Book : Blog
|
|
|
Powered by
FUDForum. Page generated in 0.09587 seconds