Asynchronous Database Access: Difference between revisions
Content deleted Content added
imported>Hendrik Brummermann No edit summary |
imported>Kymara minor typos |
||
Line 15:
== Kinds of database operations ==
Most of the database operations in marauroa are write only, making it easy to put them into a queue for asynchronous processing. Read operations are more difficult to handle because the data returned by them is needed. That is
There are three kinds of read operations:
Line 47:
Note: This
There should be a DatabaseOperationQueue, which is singleton and has a background thread to execute enqueued DatabaseOperations. DatabaseOperation is an interface that specifies an execute()-method, that handles the database operation by invoking the DAO-classes. It is called from the background thread of DatabaseOperationQueue.
| |||