Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Difference between cache-usage and maintain-cache query hints?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=340309

Laird Nelson wrote:
Might I suggest this query hint be documented on the same page as the other query hints? I really had to chase this one down, and frankly don't remember where I found it.

Thanks,
L

On Thu, Mar 17, 2011 at 10:14 AM, Tom Ware <tom.ware@xxxxxxxxxx <mailto:tom.ware@xxxxxxxxxx>> wrote:

    Correct.

    Laird Nelson wrote:

        On Thu, Mar 17, 2011 at 9:53 AM, Tom Ware <tom.ware@xxxxxxxxxx
        <mailto:tom.ware@xxxxxxxxxx> <mailto:tom.ware@xxxxxxxxxx
        <mailto:tom.ware@xxxxxxxxxx>>> wrote:

           The query results cache query hint is not quite the same.  You
           should only use this query hint for absolutely static data.  When
           you use a query-results-cache, the database will only be hit
        once.
            Every time you use the query it will return the same results
        as the
           first usage.


        Which, for U. S. state data, is exactly what I want.  So it
        sounds like for this relatively simple use case (state data,
        gender tables, other things that are used basically only to
        validate foreign keys), query-results-cache is what I want.
         (Yes? he asked, somewhat nervously.)

        L


        ------------------------------------------------------------------------

        _______________________________________________
        eclipselink-users mailing list
        eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>
        https://dev.eclipse.org/mailman/listinfo/eclipselink-users

    _______________________________________________
    eclipselink-users mailing list
    eclipselink-users@xxxxxxxxxxx <mailto:eclipselink-users@xxxxxxxxxxx>
    https://dev.eclipse.org/mailman/listinfo/eclipselink-users



------------------------------------------------------------------------

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top