Hi ,
   My datastore Update takes time to reflect in datastore.

We use two way to persist our updated object in datastore both works for us.

Option 1. :- Get the object form the datastore detached the same and send
the json as response . We do the changes in json properties in front-end
and pass the same to update the completer object like this.


try{

   pm = PersistenceManagerUtil.getPersistanceManager();

   pm.makePersistent(object);

   }catch(Exception e){

}finally{

 pm.close();

 }

The got the info form documentation that

The call to makePersistent() is synchronous, and doesn't return until the
object is saved and indexes are updated.

Here my question is as i am update the whole Object does it indexes all the
filed again which is the cause of the  delay in datastore update.

Option 2:

We Just pass the Id or key form the front end and then use

        Employee e = pm.getObjectById(Employee.class, k);

WE update the e properties with change value the

pm.makePersistent(e);

}catch(Exception e){

}finally{

pm.close();

}

Fell like doing two step but does work little fast . sometime can't say .
My question here is is there any difference between option 1 and option 2
if not what is the appropriate solution for making it fast .

-- 
Thanks,
Pravanjan
Dev *formcreator <http://alpha.formcreator.a-cti.com/pages/logInForm.jsp>*

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to