What if you do use limitby in the select to limit the results to just one,
is there still a performance difference?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Is
Performance, some collections (tables) have lots of references fields and
have poor select performance using the DAL
On Nov 14, 2014 6:40 PM, "Leonel Câmara" wrote:
> Why are you talking to mongodb directly? This completely ruins the purpose
> of using a DAL.
>
> What's happening here is that whe
By the way, how is web2py support for Mongo ?
I only find old post about it.
Is it safe to use Mongo with Web2py ?
Is the DAL 100% compatible with mongo ?
Regards
António
2014-11-15 13:02 GMT+00:00 Alan Etkin :
> Row.__str__ is called which in turn calls Row.as_dict, well Row.as_dict
>> does
>
> Row.__str__ is called which in turn calls Row.as_dict, well Row.as_dict
> does not know how to serialize ObjectId so it just ignores it.
>
I don't recall exactly (perhaps I should check the source), but I think the
mongodb adapter doesn't support dealing with pure objectid objects for
data
Why are you talking to mongodb directly? This completely ruins the purpose
of using a DAL.
What's happening here is that when you do:
print(Row(user))
Row.__str__ is called which in turn calls Row.as_dict, well Row.as_dict
does not know how to serialize ObjectId so it just ignores it.
One t
5 matches
Mail list logo