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 obviousobviously the reason why it is read in the first place.
 
There are three kinds of read operations:
Line 47:
 
 
Note: This sectionssection needs more thinking.
 
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.