I am using App Engine (Java) with Objectify and RequestFactory.
My entity stores some fields and an embedded entity ArrayList. The embedded entity has its own couple of fields. So an example entity might look like:
name: Bob
email: [email protected]
todo.description: ["Pick up food", "Wash car", "Exercise"]
todo.importance: [1, 5, 3]
I have a DataGrid that pulls the embedded entity list and displays it. If you click a button a new item is added to the embedded entity, the entity persisted and the Data Grid is refreshed.
The problem is that it is not highly consistent. Most of the time the DataGrid will successfully refresh with the up to date data, but sometimes it just shows the old data and you will have to refresh the page to show the new results.
I understand that the App Engine is only eventually consistent when it comes to entities that are not in the same entity group, but as far as I understand an embedded entity just ends up as more fields on the entity containing it, i.e. there is only one entity involved, and everything should be highly consistent.
Am I wrong about this?