-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read-log doesn't end when using tx ids #26
Comments
cc @lbradstreet |
Hi Jeremy,
Yes, this is a bug. We are trying to be consistent with datomic's tx-range call which is inclusive of the start tx and exclusive of the end tx, but I think it makes far more sense to be inclusive of both the start and the end. This would be simpler to understand and use and is more consistent with the other streaming plugins.
I agree that supporting Tx ids would be a good addition.
If you'd like to supply a PR for both of these we'd be very happy to merge it.
Thanks!
… On 24 Mar 2017, at 08:52, Michael Drogalis ***@***.***> wrote:
cc @lbradstreet
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi @jeremyheiler, we're still happy to put this in onyx-datomic if you've made any progress. Thanks! |
I'm working on it now. I had to take a break from this, but now I'm back and it's directly blocking me. |
Great. I didn't mean to be pushy! Cheers.
…On 4 April 2017 at 10:40, Jeremy Heiler ***@***.***> wrote:
Will do! I had to take a break from this, but now I'm back and it's
directly blocking me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPZHU16b_X9Zk2xTXFN6oT3WbGipVCGks5rsoB9gaJpZM4MoZ4e>
.
|
No worries! :-) |
Thinking about it a little more, I'm not sure the best way to handle tx ids. My thought would be to normalize them to t values so comparison operations can be done. But is there a good predicate for tx ids? Perhaps byte length? |
Normalizing to t values seems reasonable. Maybe we could make a breaking change and deprecate: and then create two sets of task parameters Then we could also change the behaviour of log-end-t to not be exclusive on the end t? Alternatively, the task-map could take a param |
I don't think I have a preference. In the first solution, someone could accidentally mix |
If you use tx ids for start and end with
read-log
, it never ends since it compares theend-tx
witht
, which is (effectively) always smaller.https://github.com/onyx-platform/onyx-datomic/blob/0.10.x/src/onyx/plugin/datomic.clj#L200
This leads me to wonder if tx ids are supported? I assumed so based on the name of the keys
:datomic/log-start-tx
and:datomic/log-end-tx
. And botht
and tx ids are supported bydatomic.api/tx-range
.I'd be happy to provide a patch either way.
The text was updated successfully, but these errors were encountered: