I am having a performance issue when use the entity data provider. In a where statement with a date value the entity provider transforms the Linq statement into a Oracle timestamp using TO_TIMESTAMP. The query runs against a multimillion and partioned table where the date value in the primary key. The whole result is limited using Take/ROWNUM<=.
Code: Select all
SELECT blabla
WHERE "Extent1".EFFECTIVE_DATE = TO_TIMESTAMP('20100921', 'YYYYMMDD') AND ROWNUM <= (50)
I also saw other topics in the forum that TO_TIMESTAMP is needed because of the milliseconds. Why you don't use TO_TIMESTAMP when milliseconds are given from the DateTime value and if not use TO_DATE.
Thanks!
dotConnect V-5.70.190.0
Oracle 11g