I am not caching the user, I always use the UserServiceFactory on each request.
I discovered this testing the web.xml security-contraint configurations. I was surprised to say the least. I then added debugging to output user info to a page and noted the symptoms reported. Re: insertion performance, I update two entities, one is always created (with a generated key) and the other updated. I update using a batch put which improved update from ~180ms to 120ms Initially there was a single Blob property on the insert entity (I store transactional data), adding a few unindexed properties seems to have made no significant difference. I did test "pre-puts", batching say one-hundred inserts, and then seeing if update of an existing entity was any better - it wasn't. I will get back with some more metrics in a bit. On Aug 5, 1:14 pm, "Nick Johnson (Google)" <nick.john...@google.com> wrote: > Hi Martyn, > > On Wed, Aug 5, 2009 at 9:48 AM, Martyn<martyn.cutc...@googlemail.com> wrote: > > > Hi there, > > > In testing I have noted latency in user identity management when I > > sign in and out as different account users. > > > 1) I sign in as user A - application recognises me as user A > > 2) I sign out - application still recognises me as User A > > 3) I sign in as user B - applicaiton recognises me as user A > > 4) sometime later (around a minute) application recognises me as user > > B > > > I understand how this could happen, based on caching for performance, > > but should it? > > If you're caching responses, there's nothing any of the rest of the > infrastructure can do about it. You need to use a caching strategy > that can cope with users logging out, such as using etags. > > Have you checked to see if this _is_ a caching issue? Does your App > Engine app see requests from the newly logged-out user, or are they > entirely served from the cache? Are you using the Users API, or your > own session management? How are you logging out of the app? > > > > > ...and I'm still concerned about insert performance, seems like 120ms > > is the best I can hope for (single row, no indexed properies, Blob of > > around 1k). > > This seems high. Have you experimented with entities with different > numbers of properties and entity sizes? > > -Nick Johnson > > > > > - Martyn > > -- > Nick Johnson, Developer Programs Engineer, App Engine --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---