Fork me on GitHub
#onyx
<
2016-12-01
>
yonatanel13:12:14

I'm starting a small CQRS simulator project. I want to do it with onyx-local-rt, and I want to show the window state with the environment on every tick. Can environment-summary show the window state or is it intentionally left out?

chrisblom14:12:41

does onyx have an option to periodically call gc to compact the log?

gardnervickers14:12:54

No, that’s up to the user.

chrisblom14:12:28

ok, im asking because the dashboard crashes on large log histories

chrisblom14:12:04

but for now i'll just add some cron job thingy to call gc periodically

michaeldrogalis17:12:49

@yonatanel It could I guess, but I think I’d prefer that you write your own since the window bounds aren’t exactly the most readable thing. Usually they’re convertable to UNIX timestamps, but not always.

michaeldrogalis18:12:36

@yonatanel Does that seem acceptable given that environment-summary is just a select-keys call?

lucasbradstreet18:12:49

@michaeldrogalis I personally don’t mind sticking it in there even if it’s not readable since it gives an idea about what is going on

michaeldrogalis18:12:22

@lucasbradstreet Should we call bounds before reading it to to reverse the extents then?

michaeldrogalis18:12:07

I guess I don’t really have a strong opinion, it’s just a utility fn. Whatever you think will be most useful @yonatanel @lucasbradstreet

lucasbradstreet18:12:09

I don’t think we do when we pass the extents to the trigger function, right?

lucasbradstreet18:12:43

Yeah, my argument is that more info into what is going on is better than less as long as people don’t start using it from there

lucasbradstreet18:12:54

(to do anything important that is)

michaeldrogalis18:12:52

That’s a good point, yeah. @yonatanel If you want to PR the change it, let’s do it

lucasbradstreet18:12:43

I could also see it being useful for writing unit tests when comparing the results of trigger calls to what is in the windows

yonatanel19:12:12

I'll play with it a little and see how it looks

yonatanel19:12:29

I will definitely need it very soon