is it possible to read the state of the acid database at a specific time or version?

11 views
Skip to first unread message

Anatoly Yakovenko

unread,
Apr 28, 2012, 4:13:31 PM4/28/12
to ha...@googlegroups.com
is it possible to read the state of the acid database at a specific
time or version?

Thanks,
Anatoly

Jeremy Shaw

unread,
Apr 28, 2012, 4:34:31 PM4/28/12
to ha...@googlegroups.com
In theory, it is possible to replay the events one-by-one and see
every state the database was in. I do not believe there are any
timestamps stored in the events, so you would not be able to do it
based on time.

In practice, there is currently no mechanism exported for doing that.
I believe the plan is to create an 'acid-state' command-line tool that
could provide that type of functionality.

- jeremy
> --
> You received this message because you are subscribed to the Google Groups "HAppS" group.
> To post to this group, send email to ha...@googlegroups.com.
> To unsubscribe from this group, send email to happs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/happs?hl=en.
>

anatoly yakovenko

unread,
Apr 28, 2012, 4:43:30 PM4/28/12
to ha...@googlegroups.com
It would awesome if you could support Query's on a specific version of the db. For example, i am handling paypal payment notifications, and i would be ideal for me to lookup the state of the db at the time when the payment was made and not when the notification was received.

Thanks,
Anatoly

Petter Bergman

unread,
Apr 29, 2012, 1:23:04 AM4/29/12
to ha...@googlegroups.com
I'm doing something somewhat related. I have an undo system for my web app. What i did was to create an extra layer of events for the "undo-able" portion of the state. Those events contain metadata such as timestamp, the user responsible, if the event succeeded or failed and so on. I can then go back and replay the events exept the one I want to undo. There is really nothing acid-state specific absolut this, it can be done for any haskell data.

/petter
Reply all
Reply to author
Forward
0 new messages