David Lai

Results 196 comments of David Lai

``` # Just give it an empty filter x = col.cound_documents({}) ``` Counting documents with a query filter is actually why `cound_documents` works more solid than `count`. https://pymongo.readthedocs.io/en/stable/api/pymongo/collection.html#pymongo.collection.Collection.count_documents https://stackoverflow.com/a/52236791/4145300 And,...

Ah, yes, you are right.. The Python requirement specification is not clear indeed, sorry about that. :( Okay, had a quick look at the code and I think if you...

Thanks, this would be the next goal once #26, #27, #38 are resolved. :) References: * https://github.com/omnilib/aiosqlite * https://github.com/mongodb/motor

Related to #64

Hey @rewiaca , thanks for trying ! I think the problem is that the FlatFile storage engine doesn't have any file lock so it's not multiple processes safe. Maybe you...

Also, I don't think this line could actually set the config ``` client.cache_modified = 1 ```

Glad that LMDB storage engine helps ! > As I understand, each worker will not hold all database in memory but it will load up from file every request, what...

Hi @pgmillon , I have just tested it and able to reproduce, looks like there's something wrong when calling `db.create_collection` explicitly. But should be fine if you skip that explicit...

Thanks ! That would be really helpful :D

Ah sure, poetry is good and would like to work with :)