Process the Queue

When you insert or update records in a datastore table, the changes are not made immediately. For efficiency reasons they are queued and then committed in batches. To make sure all changes have been committed before you perform a query, you can instruct the datastore to process the queue:

       datastore.ProcessQueue();

If you do not process the queue explicitly it is processed automatically when the queue reaches a given size and when the DatastoreFile object is disposed of.