by rapidfirestudio » Wed Jul 25, 2012 12:51 am
I just checked the luamongo docs and I don't see how to pass options with a query. The mongo docs say I can pass something like {'slaveOk':0} with a query, though that's for find() and not query() -- assuming one's not a simple alias for the other, as it doesn't appear to be. But it also says that slaveOk is disabled by default.
Assuming that's what you're doing, is there any reason slaveOk is enabled by default? I read some of the rationale for doing so but it seems like eventual consistency is not what most people would want/expect for most uses.
Can you please provide a working example of how to force a primary read?
I can't replicate the code loading issue to understand it better. I'm using a custom loader that I wrote and it doesn't parse the response for error messages (not sure you send any anyway). It may just be failing periodically. I did see that you're using git for deploys now -- I'll probably switch to that at some point.