• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Opinions on fetching/filtering
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opinions on fetching/filtering


  • Subject: Re: Opinions on fetching/filtering
  • From: Art Isbell <email@hidden>
  • Date: Fri, 13 Jan 2006 09:26:07 -1000

On Jan 13, 2006, at 6:33 AM, Ken Anderson wrote:

From what you've said, I would probably cache the user's current portfolio in the session and use in-memory filtering to generate results. If you're using any kind of cross instance notification mechanism, you could always hook that up to the project cache. I'm making the assumption that these objects aren't too big - if they're more than a few hundred bytes, I might reconsider that position.

EOF will cache snapshots as long as the objects associated with them are in an editing context, so caching the objects themselves shouldn't take much more memory. My view has been that if these snapshots are fresh enough, I might as well cache the objects associated with these snapshots myself rather than refetching them. By default, refetched objects will be discarded anyway, so why take the time to refetch them? Of course, if you want to refresh the snapshots and have taken measures to ensure that the fetched objects refresh the snapshots, that's a good reason to refetch.


Filtering objects in memory does take time, but I assume that it's quicker than the fetch overhead. I've never measured the performance of NSSet operations, but I use them to eliminate duplicate objects, for example. This has been "fast enough" in my situation.

Aloha,
Art

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Opinions on fetching/filtering (From: James Cicenia <email@hidden>)
 >Re: Opinions on fetching/filtering (From: Ken Anderson <email@hidden>)
 >Re: Opinions on fetching/filtering (From: James Cicenia <email@hidden>)
 >Re: Opinions on fetching/filtering (From: Ken Anderson <email@hidden>)

  • Prev by Date: Re: uninstalling WebObjects 5.2.4
  • Next by Date: Unexpected behavior when an action is within a WORepetition
  • Previous by thread: Re: Opinions on fetching/filtering
  • Next by thread: Unexpected behavior when an action is within a WORepetition
  • Index(es):
    • Date
    • Thread