[Developers] improving 'Base-In-A-Case' AppEngine-Freebase library

Tom Morris tfmorris at gmail.com
Wed Jul 15 13:58:30 UTC 2009


Sounds cool.  Great to see some App Engine examples.

I'll take the easy one:

On Tue, Jul 14, 2009 at 6:35 PM, James Alexander
Levy<jamesalexanderlevy at gmail.com> wrote:

> There are a couple of issues I'd like to solicit feedback about. Even the
> name of what methods I should be using should be sufficient for me to figure
> out the rest.
>
> Here are the issues I'm dealing with:
>
> * Caching
>
> The app uses Freebase Suggest to both retrieve and induce data into the
> table of topics for a given user. This ajax-driven approach really means
> that it would really be best to refresh the cache every time we make an
> update. At his boot camp session, Alec Flett was discussing exactly this but
> I cannot recall the specifics.

The cache is write-back (I think), so normally you should only have an
issue if you're doing writes and reads from different clients.  In
your case, only if you write from AppEngine, then read from the
browser.  If this is the case, use the touch API from the browser to
get its "last write" cookie reset.

http://mql.freebaseapps.com/ch06.html#id2972569

Tom


More information about the Developers mailing list