oldmoe / mysqlplus

An enhanced mysql driver with an async interface and threaded access support

This URL has Read+Write access

Comments for oldmoe's mysqlplus   feed

methodmissing commented on oldmoe/mysqlplus Sat Mar 07 10:19:18 -0800 2009
Comment in 6884d45:

Roger,

Sets the TCP_NODELAY socket option

methodmissing commented on oldmoe/mysqlplus Sat Mar 07 10:09:46 -0800 2009
Comment in 4e5967b:

Roger,

Initial thoughts with this was :

If the user / client is not interested in a result, let it be fire and forget and thus also don’t flag as an async operation in progress.

Some ‘say what?’ moments after revisiting months after :-)

I smell a cleanup in progress …

- Lourens

rdp commented on oldmoe/mysqlplus Sat Mar 07 03:36:30 -0800 2009
Comment in 6884d45:

what does fastsend do do you know? thanks!

rdp commented on oldmoe/mysqlplus Sat Mar 07 03:33:24 -0800 2009
Comment in 85141ab:

I like this one. Preserve sanity for end users by disallowing more than one query :P

rdp commented on oldmoe/mysqlplus Sat Mar 07 03:32:25 -0800 2009
Comment in 4e5967b:

is this deprecated? Question: why should the value of query_with_result actually affect whether or not one sets async in progress? Thanks!

methodmissing commented on oldmoe/mysqlplus Fri Mar 06 18:11:18 -0800 2009
Comment in 48a61dd:

Roger,

Deprecated – initially just played with this for mysql_adapter – the same information can be made available by piggy backing off async_in_progress and exposing a public method.

Please do turn a blind eye, if possible :-)

- Lourens

rdp commented on oldmoe/mysqlplus Fri Mar 06 17:25:14 -0800 2009
Comment in 48a61dd:

isn’t is kind of scary to allow them to set busy=

rdp commented on oldmoe/mysqlplus Fri Mar 06 17:24:42 -0800 2009
Comment in 48a61dd:

does busy mean something different than async_in_progress? I guess it means “async_in_progress or async might become in progress right soon”?

rdp commented on oldmoe/mysqlplus Wed Jan 28 14:46:49 -0800 2009
Comment in bb63b9d:

oh yeah—you’re right

tmm1 commented on oldmoe/mysqlplus Mon Jan 26 16:35:08 -0800 2009
Comment in bb63b9d:

I think the comment only applies to test_all_hashes.rb, and was accidentally copied into the other two files?

rdp commented on oldmoe/mysqlplus Mon Jan 26 14:40:44 -0800 2009
Comment in bb63b9d:

these comments were actually true, at least for my machine at the time.

rdp commented on oldmoe/mysqlplus Mon Jan 12 11:20:39 -0800 2009
Comment in 6884d45:

so MYSQL_STATUS_READY means that the socket is ready for writing? Wow their docs seem so hard to parse…

methodmissing commented on oldmoe/mysqlplus Mon Jan 12 11:07:36 -0800 2009
Comment in 6884d45:

Roger,

There’s also the option to use MYSQL_STATUS_READY, which libmysld sets as the status member of the Mysql struct.I found this to be slightly more reliable than vio_poll_read as the latter is best suited for poll, not select.

http://github.com/oldmoe/mysqlplus/commit/9d66a3b71e91688e4b4a90d056dbc8bbbb88dc7f

rdp commented on oldmoe/mysqlplus Mon Jan 12 10:12:06 -0800 2009
Comment in 6884d45:

I’m not sure what vio_poll_read does—does it block? I wonder if we can skip the rb_select somehow…but this should be all right.

rdp commented on oldmoe/mysqlplus Mon Jan 12 10:09:36 -0800 2009
Comment in 6884d45:

I’m not sure if NILorSTRING returns ruby objects only…

oldmoe commented on oldmoe/mysqlplus Thu Sep 04 21:00:36 -0700 2008
Comment in 266ef93:

should be fixed now

oldmoe commented on oldmoe/mysqlplus Thu Sep 04 20:27:02 -0700 2008
Comment in 266ef93:

found the bug, all_hashes should return an empty array on empty result sets. This implementation returns nil instead

oldmoe commented on oldmoe/mysqlplus Thu Sep 04 20:16:27 -0700 2008
Comment in 266ef93:

@tmm1, I am getting reports of a failing find_by_sql which complains about trying to collect! from a nil value.

this means that AR’s select() method (implemented in the adapter) returned nil. The implementation of select is trivial

def select(sql, name = nil) @connection.query_with_result = true result = execute(sql, name) rows = result.all_hashes result.free rows end

but It seems some people will get rows = nil (which is the case if all_hashes is called twice)

oldmoe commented on oldmoe/mysqlplus Thu Sep 04 17:41:17 -0700 2008
Comment in 266ef93:

I have tested it myself and found it to work!

tmm1 commented on oldmoe/mysqlplus Thu Sep 04 17:40:52 -0700 2008
Comment in 266ef93:

What are the issues?