Wednesday, December 5, 2007

What counts as transaction regarding to electronic voting system

Any of the database updating is transactions. On the precinct voting server, there is precinct voting DB to store precinct voting data; on the central voting server, there is central voting DB to store central voting data. Most commonly database uses locking to ensure ACID capabilities. For example, when precinct vote collector is performing a write operation on a row of data that precinct uploader wants to perform read operation on, read operation is blocked until the lock is released by the write operation.

Queries could participate in the transaction. Sometimes it is important in which order queries run, all queries in a group run or none at all. For example, one query is to update the vote total of individual candidate by adding votes while another query is to updating the vote total of all other candidates by deducting votes. Either query as a group will run, or neither will run. Both of these queries are one transaction.

In reality, most of the applications rely on database to provide transaction support. There are exceptions: Transactional file systems could be used instead of database to provide transactional support. One example of that is Journaling file system.

Oracle has recently acquired Tangosol Coherence to provide in-memory data management. It provides transactional support without the durability since data are only stored in-memory. The usage is mostly in ensuring data integrity for cached data.

No comments: