Re: Allowing multiple, simultaneous, non-blocking queries.

From: Date: Sun, 28 Mar 2010 17:40:28 +0000
Subject: Re: Allowing multiple, simultaneous, non-blocking queries.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-303558@lists.php.net to get a copy of this message
Richard Quadling wrote: > Hi. > > As I understand things, one of the main issues in the "When will PHP > grow up" thread was the ability to issue multiple queries in parallel > via some sort of threading mechanism. > > Due to the complete overhaul required of the core and extensions to > support userland threading, the general consensus was a big fat "No!".. Maybe a "Thanks, but no thanks". > As I understand things, it is possible, in userland, to use multiple, > non-blocking sockets for file I/O (something I don't seem to be able > to achieve on Windows http://bugs.php.net/bug.php?id=47918). > > Can this process be "leveraged" to allow for non-blocking queries? > > Being able to throw out multiple non-blocking queries would allow for > the "queries in parallel" issue. > > My understanding is that at the base level, all queries are running on > a socket in some way, so isn't this facility nearly already there in > some way? AFAICT (i.e. without having tried it), myqlnd enables you to do asynchronous queries on mysql - the docuementation is a little lacking. Personally speaking, that would be my first avenue of attack. -- Per Jessen, Zürich (8.2°C)

« previous php.general (#303558) next »