Re: Pulling from Multiple Databases

From: Date: Tue, 01 Feb 2011 16:39:59 +0000
Subject: Re: Pulling from Multiple Databases
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-311113@lists.php.net to get a copy of this message
On Tue, Feb 1, 2011 at 10:59 AM, Jon Hood <squinky86@gmail.com> wrote: > I have a website that is currently pulling from more than 30 databases, > combining the data, and displaying it to the user. As more and more > databases are added, the script continues to get slower and slower, and > I've > realized that I need to either find a way to pull these data in parallel. > So > - what is the preferred method of pulling data from multiple locations in > parallel? > > Thanks, > Jon > Well, you could turn the calls into REST-based web requests that produce json. Then you could use curl_multi to grab the results in parallel and quick decode the json. Adam P.S. - Sorry for the duplicate, Jon, I forgot to copy the list. -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

« previous php.general (#311113) next »