Parallel Queries in S3QL

S3QL is a lower level query language than relational SQL. For that reason, it takes more queries to retrieve all statement associated with a certain number of Items. To avoid the wait time usually associated with waiting for one query to finish before starting the next, there are several options in PHP and other languages to run the queries in parallel. 
For example, if using PHP you can use this small function to achieve that goal. Once the function 'goparallel' is included in your script, use the following syntax to perform your queries in parallel and save the result in a single "results" array:



$S3QL = array(

$results = goparallel($S3QL,1);#Replace the 1 with a 0 here to compare see your results without the parallelization

echo "Your queries results:<BR>";
echo '<pre>';print_r($results);

Lena Deus,
Aug 10, 2009, 12:03 PM