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 ZhouFriend
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 DelahuntFriend
Messages: 1270
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:Composite Primary key error - Multiple writable mappings exist for the field
Next Topic:Optimistic Locking since 2.4x
Goto Forum:
  


Current Time: Sun Oct 22 01:16:36 GMT 2017

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

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