mongo-model icon indicating copy to clipboard operation
mongo-model copied to clipboard

still maintained?

Open twojcik opened this issue 13 years ago • 3 comments

Hi, I like the lib, but not sure if it's still maintained? How does mongo-model compare to https://github.com/alexeypetrushin/mongo-lite?

Cheers, Tadek

twojcik avatar Jun 23 '12 15:06 twojcik

Hi, I'm not decided it yet, it's an open question.

Right now in my own project I need:

  • models that should be usable on both client and server and with multiple persistence providers (mongo + redis + REST).
  • models should be simple and small.

So, I cut this project in half:

  • part of mongodb-persistence logic goes into mongo-lite.
  • model has been greatly simplified and goes into passive-model.

There's one problem though - the callbacks. Callbacks of model (before / after save / update / ...) is tightly coupled with persistence provider. It's very hard to make it abstract (callbacks by itself is the most complicated part of model), so I discarded it it, passive-model doesn't have callbacks.

This issue prevents me from completely replacing mongo-model with mong-lite + passive-model.

So, current state:

  • I'm fixing bugs in this repo.
  • mongo-lite and passive-model - things I'm actively working on. mongo-lite seems to be ready for usage, `passive-model' needs some final polishing + docs. But they don't have callbacks , I had to sacrifice it to gain compatibility with multiple persistency providers and simplicity.

al6x avatar Jun 23 '12 22:06 al6x

@alexeypetrushin thanks for detailed answer! Will look into mongo-lite and passive-model in that case !

twojcik avatar Jun 25 '12 08:06 twojcik

Be prepared though that passive-model isn't finished, there are couple of things that should be done there. I'll plan to do it in 2-3 weeks.

al6x avatar Jun 25 '12 08:06 al6x