Skip to main content


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: 1389
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: Thu Apr 18 23:57:34 GMT 2024

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

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

Back to the top