Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2015-10-12 Thread Glyph Lefkowitz
> On Oct 12, 2015, at 1:23 AM, Gelin Yan wrote: > > I have switched from pymongo to txmongo for about two months. I got at > least 2x faster on query. Despite of some minor issues which have been fixed > recently, I am very happy with it. This is really cool to hear. I try not to say "twi

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2015-10-12 Thread Gelin Yan
On Mon, Oct 12, 2015 at 3:51 PM, bret curtis wrote: > There is one thing that TxMongo does that PyMongo, Motor and the rest > don't do: handle deadlines and timeouts. > > We're (HGST/WesternDigital) using MongoDB (with WiredTiger) in real-time > applications and one of our requirements was to hon

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2015-10-12 Thread bret curtis
There is one thing that TxMongo does that PyMongo, Motor and the rest don't do: handle deadlines and timeouts. We're (HGST/WesternDigital) using MongoDB (with WiredTiger) in real-time applications and one of our requirements was to honour application set deadlines (or timeouts) on a per-call basis

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2015-10-09 Thread Jonathan Vanasco
On Oct 9, 2015, at 1:06 PM, Clayton Daley wrote: > I (OP) was looking into these libraries/options as part of a side project > that's been delayed by real work. I'm also relegating Mongo to a caching > layer after stumbling upon Sarah Mei's "Why You Should Never Use MongoDB" and > realizing I

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2015-10-09 Thread Clayton Daley
I (OP) was looking into these libraries/options as part of a side project that's been delayed by real work. I'm also relegating Mongo to a caching layer after stumbling upon Sarah Mei's "Why You Should Never Use MongoDB" and realizing I was going to have the exact same problems. Clayton Daley On

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2015-10-08 Thread Jonathan Vanasco
On Oct 8, 2015, at 6:19 AM, bret curtis wrote: > We're not sure about what OP has done, but if there is ever anything lacking > in TxMongo... please open an issue/ticket with us over at: > https://github.com/twisted/txmongo Thanks for the reply! I actually did open a few lowball tickets on Tx

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2015-10-08 Thread bret curtis
We're not sure about what OP has done, but if there is ever anything lacking in TxMongo... please open an issue/ticket with us over at: https://github.com/twisted/txmongo Cheers, Bret On Wed, Oct 7, 2015 at 8:18 PM, Jonathan Vanasco wrote: > > On Dec 21, 2014, at 4:05 PM, Clayton Daley wrote: >

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2015-10-07 Thread Jonathan Vanasco
On Dec 21, 2014, at 4:05 PM, Clayton Daley wrote: > Are there any major disadvantages of using pymongo with callInThread instead > of txmongo? I'd like to take advantage of some newer features in pymongo > (unfortunately not available in txmongo) and it's certainly easier to > maintain featur

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2015-01-31 Thread bret curtis
On Sat, Jan 31, 2015 at 7:37 PM, Gelin Yan wrote: > > > On Tue, Dec 30, 2014 at 5:50 PM, bret curtis wrote: > >> On Tue, Dec 23, 2014 at 7:51 AM, Gelin Yan wrote: >> >>> >>> >>> On Mon, Dec 22, 2014 at 5:05 AM, Clayton Daley >>> wrote: >>> Are there any major disadvantages of using pymong

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2015-01-31 Thread Gelin Yan
On Tue, Dec 30, 2014 at 5:50 PM, bret curtis wrote: > On Tue, Dec 23, 2014 at 7:51 AM, Gelin Yan wrote: > >> >> >> On Mon, Dec 22, 2014 at 5:05 AM, Clayton Daley >> wrote: >> >>> Are there any major disadvantages of using pymongo with callInThread >>> instead of txmongo? I'd like to take advan

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2014-12-30 Thread Clayton Daley
I'm still in "proof of concept" mode so take my comments with a grain of salt... but my question was motivated by datetime issues: - After switching to txmongo, timedelta seemed to break. Turns out it breaks autobahn as well so I may need to solve the problem sooner... but it's a material

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2014-12-30 Thread bret curtis
On Tue, Dec 23, 2014 at 7:51 AM, Gelin Yan wrote: > > > On Mon, Dec 22, 2014 at 5:05 AM, Clayton Daley > wrote: > >> Are there any major disadvantages of using pymongo with callInThread >> instead of txmongo? I'd like to take advantage of some newer features in >> pymongo (unfortunately not ava

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2014-12-24 Thread Clayton Daley
Thanks. Are you aware of any resources that clarify which pymongo calls are lazy and which actually result in calls to the Mongo server (thus really benefit from derferToThread)? Clayton Daley clayton.da...@gmail.com 513.505.1236 On Tue, Dec 23, 2014 at 1:51 AM, Gelin Yan wrote: > > > On Mon,

Re: [Twisted-Python] txmongo vs. pymongo + callInThread

2014-12-22 Thread Gelin Yan
On Mon, Dec 22, 2014 at 5:05 AM, Clayton Daley wrote: > Are there any major disadvantages of using pymongo with callInThread > instead of txmongo? I'd like to take advantage of some newer features in > pymongo (unfortunately not available in txmongo) and it's certainly easier > to maintain featu

[Twisted-Python] txmongo vs. pymongo + callInThread

2014-12-21 Thread Clayton Daley
Are there any major disadvantages of using pymongo with callInThread instead of txmongo? I'd like to take advantage of some newer features in pymongo (unfortunately not available in txmongo) and it's certainly easier to maintain feature parity using callInThread. Clayton Daley ___