yaxing/ads_con_ctrl — Issue #2: Timestamp issue
Author: yaxing
Created: 2011-11-10 05:11:46+00:00
State: open

For now I think we're just using auto-increment integers for transaction timestamp.

Since we need to use snapshot for Read-Only transactions. RO transaction should read the snapshot whose timestamp is smaller than itself's. The issue would be how can we compare the transaction timestamp and snapshot timestamp?

e.g. suppose in real system, timestamp are actually time (date:HH:mm:ss) then we just need to directly compare them. However, we cannot compare them now since transaction timestamp (int) is independent with snapshot timestamp (maybe another int?).

Should we just use time for our timestamp?