On Wed, Sep 16, 2009 at 6:33 AM, Larkin2 <[email protected]> wrote:
> > as a follow up to this - would it be possible to use the phrases I > describe below as entity keys so that I could just use the getbykey > method rather than querying for each phrase to see if it exists in the > Datastore? If so, does anyone know the limitations on keys - how long > can they be and can they contain special characters like "" ) etc...? > Yes - though if your phrases are long, you should probably sha1 hash them and use the hash as a key. Also, if simply overwriting old data is fine, you can simply unconditionally insert the phrases; if they already exist, they will overwrite the old record. -Nick > > On Sep 16, 1:03 am, Larkin2 <[email protected]> wrote: > > My application is comprised of semicolon delimited phrases or sentence > > fragments. When a user enters these phrases into a form textarea I > > split the contents into a list and then check to see if each phrase > > already exists as an entity in the datastore. This process is killing > > me on cpu cycles, but I'm not sure there's any alternative. Has anyone > > discovered techniques for efficiently searching through entity > > properties? I've thought about using a listproperty, but I'm not sure > > this will work. > > > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
