Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Select from partition ?
Select from partition ? [message #756678] Mon, 14 November 2011 11:08 Go to next message
Krzysztof Kowalczyk is currently offline 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 Go to previous message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
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 : Twitter
Previous Topic:OnetoOne mapping issue
Next Topic:Select from partition ?
Goto Forum:
  


Current Time: Mon Jul 28 14:30:00 EDT 2014

Powered by FUDForum. Page generated in 0.02198 seconds