Re: caching of query results

From: Robert Zeigler (rdzeigl...arizona.edu)
Date: Wed Jan 26 2005 - 23:35:20 EST

  • Next message: Bryan Lewis: "Re: caching of query results"

    >
    > if (firstTime) {
    > // Create the query.
    > query.setName(uniqueName);
    > myDataMap.addQuery(query);
    > }

    The default policy for caching is no cache.
    Try adding:
    query.setCachePolicy(/*appropriate cache policy*/);
    If the cache is supposed to be shared by all clients, do
    query.setCachePolicy(GenericSelectQuery.SHARED_CACHE);
    If the cache should be locale to the data context associated with the
    current user, do:
    query.setCachePolicy(GenericSelectQuery.LOCAL_CACHE);

    Robert



    This archive was generated by hypermail 2.0.0 : Wed Jan 26 2005 - 23:35:28 EST