Am 23.11.2012 05:35, schrieb maxfrei:
If you will use mongoengine as orm you just need to register you
connection during start application in main() function.
After it you can simple work with models without passing connection.
http://mongoengine.org/
Thanks. I will try it. Took a look at
Thanks for your reply.
Am 23.11.2012 07:07, schrieb Malthe Borch:
On 23 November 2012 01:10, Christoph Haas em...@christoph-haas.de wrote:
... [snip] so later I could perhaps replace MongoDB by something else
but have all the abstraction in the models.py.
I think this is missing the point:
On 23 November 2012 11:27, Christoph Haas em...@christoph-haas.de wrote:
Not exactly. I want to store non-relational data (nested rich data
objects) without joining tables together. The application I'm working on
is rather simple and the data can all be put into one (JSON) structure.
So it
Thats right, mongoengine has a global connection and uses pymongo
connection pool. So you won't have to worry about that too much. It also
has EmbeddedDocument so you can embed structured document, you also have a
DictField and DynamicDocument and DynamicField so it's not a problem to
collect
Am 23.11.2012 15:06, schrieb Blaise Laflamme:
Thats right, mongoengine has a global connection and uses pymongo
connection pool. So you won't have to worry about that too much.
Thanks. In the mongoengine-users mailing list archive I've read about
problems when using threads (as Pyramid does)
I actually use this pattern on two linode VPS running Ubuntu and one in
test on DotCloud and I haven't had this problem, at least to my knowledge ;)
On Friday, 23 November 2012 10:56:05 UTC-5, Christoph Haas wrote:
Am 23.11.2012 15:06, schrieb Blaise Laflamme:
Thats right, mongoengine has a