![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
SELECT vgt.obs,pix.NDVI/AVG(vgt.NDVI) .... GROUP BY vgt.obs; |
|
The EXPLAIN command gives me the following result: table type possible_keys key len ref rows Extra ----- ------ -------------------------- -------- -- -------------- ----- -------------------------------------------- eco ref PRIMARY,v_landcov,v_lowreb v_lowreb 3 const 17021 Using where; Using temporary; Using filesort geo eq_ref PRIMARY,X_coord,Y_coord PRIMARY 3 eco.id 1 Using where gsc eq_ref PRIMARY,gsc2000_XX PRIMARY 3 geo.id 1 mgsc eq_ref PRIMARY,burnt PRIMARY 3 gsc.gsc2000_XX 1 Using where vgt ref id,obs id 4 geo.id 1 Using where pix ref id,obs id 4 const 156 Using where gba eq_ref PRIMARY,gba2000_XX PRIMARY 3 geo.id 1 mgba eq_ref PRIMARY,burnt PRIMARY 3 gba.gba2000_XX 1 Using where |
|
Does anyone has a suggestion to make it faster? |
#3
| |||
| |||
|
|
Dear MySQL-ians, I perform a SELECT on my database, but it takes over a minute for every run. I have to run it over 10000 times (with different values in the WHERE), so it takes way too long. A was therefore wondering if I could .... SELECT vgt.obs,pix.NDVI/AVG(vgt.NDVI) FROM vgtData.VGT as pix, (vgt.meta_gsc_2000 as mgsc RIGHT JOIN vgt.gsc2000 as gsc ON gsc.gsc2000_XX = mgsc.id) .... |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |