mookid8000 / Cirqus

:x: d60 event sourcing + CQRS framework
MIT License
233 stars 39 forks source link

RavenDB event store #13

Open mookid8000 opened 10 years ago

mookid8000 commented 10 years ago

(what the title says)

asgerhallas commented 10 years ago

I've been working a bit on this as I need some kind of embedded store for a small console app. And I did not know how far you were @hdrachmann?

But unfortunately RavenDb once again fails to work for even the simplest tasks. Grrrr. I have now reported this http://issues.hibernatingrhinos.com/issue/RavenDB-2751.

Do you have any ideas for another embedded storage thingy I could make an integration for? I'm considering plain file storage if nothing else comes up...

mookid8000 commented 10 years ago

Did you consider SQLite?

Sendt fra min iPhone

Den 18/09/2014 kl. 23.14 skrev Asger Hallas notifications@github.com:

I've been working a bit on this as I need some kind of embedded store for a small console app. And I did not know how far you were @hdrachmann?

But unfortunately RavenDb once again fails to work for even the simplest tasks. Grrrr. I have now reported this http://issues.hibernatingrhinos.com/issue/RavenDB-2751.

Do you have any ideas for another embedded storage thingy I could make an integration for? I'm considering plain file storage if nothing else comes up...

— Reply to this email directly or view it on GitHub.

mookid8000 commented 10 years ago

Plain file storage could work, but you'd need to do some tricks to maintain the unique constraints on (aggId, seqNo) and (globSeqNo)...

Sendt fra min iPhone

Den 18/09/2014 kl. 23.14 skrev Asger Hallas notifications@github.com:

I've been working a bit on this as I need some kind of embedded store for a small console app. And I did not know how far you were @hdrachmann?

But unfortunately RavenDb once again fails to work for even the simplest tasks. Grrrr. I have now reported this http://issues.hibernatingrhinos.com/issue/RavenDB-2751.

Do you have any ideas for another embedded storage thingy I could make an integration for? I'm considering plain file storage if nothing else comes up...

— Reply to this email directly or view it on GitHub.

hdrachmann commented 10 years ago

I'm actually done in several different versions. But none of them performs very well. My next go was to use bulk insert and lucene streaming instead.

asgerhallas commented 10 years ago

@mookid8000 Yes, but I honestly can't remember why I did not go with that :)

Sent from my phone

hdrachmann commented 10 years ago

It's kind of a raven learning process for me - so don't hold back. I've made a batching document work (wrapping several events- as the mongo version) - and a 1-1 document-event thing. I'll keep on working to try getting speed, even if you finish a PR before me.

asgerhallas commented 10 years ago

@hdrachmann cool! I could really use that even with low performance :) I wonder how you got around that bug though... Is it pushed anywhere public?

asgerhallas commented 10 years ago

I'll give it a try, but RavenDb has not been nice to me tonight. I hope he adresses the issue soon... Or that I wake up tomorrow and find out it was my own fault :)

pvivera commented 10 years ago

@asgerhallas In the meantime you can use this workaround https://gist.github.com/pvivera/a3738639a07e09294d9e#file-ravendblongquery-cs

asgerhallas commented 10 years ago

@pvivera cool, I was too slow, I see :) How did you work around the issue? I can see that you're not using your own workaround... which by the way did not work for me either. Strangely enough.

pvivera commented 10 years ago

@asgerhallas Take a look at this gist. This line does the magic :smile: https://gist.github.com/pvivera/1bf8c6ba00b4421dd82a#file-ravendbtests-cs-L54

asgerhallas commented 10 years ago

@pvivera Thanks! Who would have known :)