Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » @CacheIndex doesn't work with Criteria Query
@CacheIndex doesn't work with Criteria Query [message #1105769] Tue, 10 September 2013 08:52 Go to next message
Oliver Zhou is currently offline Oliver Zhou
Messages: 41
Registered: February 2012
Member
Hi,

I'm trying to use @CacheIndex to speed up query, it works well when using named query, but when using criteria query, it doesn't work since the query still hits the database.

Is there any particular configuration for criteria?

Best wishes,
Oliver
Re: @CacheIndex doesn't work with Criteria Query [message #1106010 is a reply to message #1105769] Tue, 10 September 2013 15:05 Go to previous message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1034
Registered: July 2009
Senior Member
Criteria queries should end up creating the same native EclipseLink queries as JPQL underneath the covers. What do the queries look like, and how are you creating and executing them?

Best Regards,
Chris
Previous Topic:Optimistic Locking since 2.4x
Next Topic:Composite Primary key error - Multiple writable mappings exist for the field
Goto Forum:
  


Current Time: Fri Oct 24 10:24:24 GMT 2014

Powered by FUDForum. Page generated in 0.03897 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software