| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Tim Gustafson | Date: | June 25 2010 12:19am |
| Subject: | Re: selecting data for computation | ||
| View as plain text | |||
Hrmm, something didn't work quite right. Here's the actual query: select x, y, zoom from map_images where image_data_size = 0 and get_lock(concat(x, ',', y, ',', zoom), 0) = 1 order by zoom , sqrt(pow(x, 2) + pow(y, 2)) limit 1 I've added the image_data_size column and indexed it, and set its current value to length(image_data), and modified my "update" query to set image_data_size correctly once the job is done. When I run more than one compute job, they all start processing the same job simultaneously. What am I missing? Tim Gustafson 831-332-1496 tjg@stripped http://tgustafson.com/
| Thread | ||
|---|---|---|
| • selecting data for computation | Tim Gustafson | 24 Jun |
| • Re: selecting data for computation | Dan Nelson | 24 Jun |
| • Re: selecting data for computation | Tim Gustafson | 25 Jun |
| • Re: selecting data for computation | Tim Gustafson | 25 Jun |
| • Re: selecting data for computation | Dan Nelson | 25 Jun |
| • Re: selecting data for computation | Tim Gustafson | 26 Jun |
| • Re: selecting data for computation | Baron Schwartz | 28 Jun |
| • Re: selecting data for computation | Tim Gustafson | 1 Jul |
| • Re: selecting data for computation | Joerg Bruehe | 25 Jun |
