MotorEngine

125 views
Skip to first unread message

Bernardo Heynemann

unread,
Oct 1, 2013, 11:07:53 PM10/1/13
to python-...@googlegroups.com
Hi,

First sorry if this is not the proper spot to comment. I couldn't find a better place to call a "Tornado community forum", so here I am.

I created a project called motorengine (https://github.com/heynemann/motorengine). The idea is to provide the same level of productivity that comes with mongoengine, but using motor (to make async calls to mongodb).

I think this would be a great addition to the whole tornado community.

That said, it's a daunting task, to say the least. I've created tickets for all the things I plan to implement in the near future. It's a lot of code, so I'm looking for committers. If that's something that interests you, just let me know.

Anyway, sorry again if this is not the right place for this kind of post.

Bernardo Heynemann

Bernardo Heynemann

unread,
Oct 1, 2013, 11:11:32 PM10/1/13
to python-...@googlegroups.com
I forgot to mention that most of the basic stuff is already there.

Modeling documents, creating and updating instances, querying.

There's a ton of stuff to implement, though.

Cheers,

Russ Weeks

unread,
Oct 4, 2013, 1:49:48 PM10/4/13
to python-...@googlegroups.com
Hi, Bernardo,

I saw your project on github a little while ago, it looks really interesting! I'm working with a medium-sized project which uses Tornado and MongoEngine.  We haven't hit scalability problems yet with the pymongo driver but it's definitely something I'm worried about.

I'm wondering, how have you implemented mongoengine's lazy initialization/automatic dereferencing in the asynchronous model?

-Russ


--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Bernardo Heynemann

unread,
Oct 7, 2013, 8:44:26 AM10/7/13
to python-...@googlegroups.com
Hey Russ,

Bernardo Heynemann
Developer @ globo.com


--
You received this message because you are subscribed to a topic in the Google Groups "Tornado Web Server" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python-tornado/WDAAscH0Anc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python-tornad...@googlegroups.com.

Bernardo Heynemann

unread,
Oct 7, 2013, 8:46:23 AM10/7/13
to python-...@googlegroups.com
Sorry for the previous one (hit send)...

Yep, I've implemented it using a method in instances called load_references.

If the model has __lazy__=False, then the references get auto loaded. Otherwise, you have to explicitly call load_references (which is an async method).

I'll get that to the docs asap.

Bernardo Heynemann
Developer @ globo.com


Reply all
Reply to author
Forward
0 new messages