Hi

Use memcache.  Have the index page retrieve everything it needs then
only stick summary data in memcache, then be agressive in serving out
data from memcache

On Updating/Adding individual pages flush their bit of cache.
Key the memcache entries on the actual entity key or a path(what ever
is appropriate)

The as mentioned elsewhere establish a mechanism for doing key only
queries
http://groups.google.com.au/group/google-appengine/browse_thread/thread/0e77738adc609864#

The retrieve summary info from memcache only fetching a full entity
when it is missing from the cache (and push it's details into the
cache).

You could even run a cron task to keep the cache loaded.

Rgds

T



On Jun 21, 5:49 am, Jesse Grosjean <[email protected]> wrote:
> I have a wiki like app.
>
> The basic model is a page which has title(StringProperty) and a body
> (TextProperty) properties. It all seems to work well, but I'm not sure
> how well my model will scale. The problem I see is that I want to have
> an "Index" page, which lists all other pages.
>
> My concern is when a model object is loaded in GAE all property fields
> are also loaded in from the store at the same time. That would seem to
> post a problem with my app on index pages, because it would mean when
> someone visits the index page both the title (which I want) and body
> (which I don't need) for all pages would need to be loaded from the
> store. Loading the body in this case seems wasteful, and possibly very
> problematic performance wise on a site with many pages.
>
> My questions:
>
> 1. Is this a problem that other people are worrying about, should I
> worry about it? I could solve the problem by dividing my page model
> into two separate models... on that contained the title and a
> reference to another model which would contain page body. That should
> make the index page scale, but it complicates the rest of the app. I'd
> prefer to avoid that rout if possible.
>
> 2. Is there, or is there a future possibility to specify that certain
> fields in a model are lazy load, not fetched and returned in the
> initial query?
>
> Thanks,
> Jesse
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to