Yes, the caching is what saves this method. The first time around, Transfer.get() will not find those objects in the cache so it gets them from the database and caches them.
The second time around, Transfer.get() will find those items in the cache and skips the database. - Gabriel On Tue, Aug 11, 2009 at 2:31 PM, Jim Rising<[email protected]> wrote: > > so does this method create a significant performance hit on the > database, or are all of these objects found in cache? i had thought > about using this method, but i'm concerned that if i do, i would be > hitting the database once for the listByPropertyMap() and then again > for every subsequent transfer.get() that i performed. if transfer is > pulling these objects from cache, not a big deal... but if it's going > back to the database to get them... ugh. > > -jim > > > On Jul 31, 1:12 pm, Dorioo <[email protected]> wrote: >> I haven't seen any paging type support. When doing paging, my current method >> is >> >> 1. Use a query to get primary keys of the items I'm paging through. >> Additionally, I use the query to determine paging aspects such as the number >> of pages, etc. >> 2. For the given "page" I'm looking at, I use the primary keys on that page >> to get an array of Transfer objects that correspond to those keys. >> >> So, I may have 2000 results in the query but, if I'm only showing 10 at a >> time, then only 10 Transfer objects are retrieved on that page. >> >> - Gabriel >> >> On Fri, Jul 31, 2009 at 1:55 PM, Jim Rising <[email protected]> wrote: >> >> > bump? >> >> > anyone have any ideas here? >> >> > -jim >> >> > On Jul 28, 5:49 pm, Jim Rising <[email protected]> wrote: >> > > Does Transfer currently support page / pageSize? What options do I have >> > > here? >> >> > > Thanks! >> >> > > -- >> > > Jim Rising >> > > Serial Entrepreneur >> > > Software Engineer >> > > Web Developer >> >> > > "Knowledge work requires both autonomy and accountability." > > > --~--~---------~--~----~------------~-------~--~----~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups "transfer-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~----------~----~----~----~------~----~------~--~---
