[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[eclipselink-dev] bug 382664 - When performing a pk query for an entity not in the cache the cache is checked twice
|
- From: Gordon Yorke <gordon.yorke@xxxxxxxxxx>
- Date: Mon, 25 Jun 2012 16:13:45 -0300
- Delivered-to: eclipselink-dev@eclipse.org
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
https://bugs.eclipse.org/bugs/show_bug.cgi?id=382664
When EclipseLink attempts to perform a Find By PK query EclipseLink will
check the cache to determine if the object is present. If it is not
present EclipseLink will issue the query against the database and
perform another lookup in the cache when processing the results. With
certain cache types this second cache lookup is not necessary and is
inefficient. This patch updates the code path to pass information to
the cache indicating that this query has already checked the cache for
the object.
Any feedback is welcome
--Gordon