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

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

Current Time: Sat Mar 28 19:09:46 GMT 2020

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

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

Back to the top