I have just done an upgrade from 4.0.2 -> 4.1.0 on windows with the builtin Postgres DB.
all the metrics queries seem to run for 5-30minutes? for example...
--------------------------------------------------------------------------------------------------------------
SELECT template_id, COUNT(id) FROM EAM_MEASUREMENT WHERE EXISTS (SELECT 1 FROM (SELECT * FROM HQ_METRIC_DATA_2D_1S WHERE timestamp between 1238094000000 and 1238103600000 AND measurement_id in (48512,48514,48516,48518,48520,48522,48524,48526,48528,48530,48532,48534,48536,48538,48540,48542,48544,48546,48548,48550,48552,48554,48556,48558,48560,48562,48564,48566,48568,48570,48572,48574,48576,48578,48580,48582,48584,48586) UNION ALL SELECT * FROM HQ_METRIC_DATA_2D_0S WHERE timestamp between 1238074800000 and 1238093999999 AND measurement_id in (48512,48514,48516,48518,48520,48522,48524,48526,48528,48530,48532,48534,48536,48538,48540,48542,48544,48546,48548,48550,48552,48554,48556,48558,48560,48562,48564,48566,48568,48570,48572,48574,48576,48578,48580,48582,48584,48586)) EAM_MEASUREMENT_DATA WHERE timestamp BETWEEN 1238074800000 AND 1238103600000 AND measurement_id = id) GROUP BY template_id
--------------------------------------------------------------------------------------------------------------
this query has been running for 30+minutes from just clicking on the base statistics page for a win32 resource
did the upgrade process drop/forget some indexes?
I have already logged in and run vacuum analyze..
Any suggestions? Roll back to 4.0.2?
all the metrics queries seem to run for 5-30minutes? for example...
--------------------------------------------------------------------------------------------------------------
SELECT template_id, COUNT(id) FROM EAM_MEASUREMENT WHERE EXISTS (SELECT 1 FROM (SELECT * FROM HQ_METRIC_DATA_2D_1S WHERE timestamp between 1238094000000 and 1238103600000 AND measurement_id in (48512,48514,48516,48518,48520,48522,48524,48526,48528,48530,48532,48534,48536,48538,48540,48542,48544,48546,48548,48550,48552,48554,48556,48558,48560,48562,48564,48566,48568,48570,48572,48574,48576,48578,48580,48582,48584,48586) UNION ALL SELECT * FROM HQ_METRIC_DATA_2D_0S WHERE timestamp between 1238074800000 and 1238093999999 AND measurement_id in (48512,48514,48516,48518,48520,48522,48524,48526,48528,48530,48532,48534,48536,48538,48540,48542,48544,48546,48548,48550,48552,48554,48556,48558,48560,48562,48564,48566,48568,48570,48572,48574,48576,48578,48580,48582,48584,48586)) EAM_MEASUREMENT_DATA WHERE timestamp BETWEEN 1238074800000 AND 1238103600000 AND measurement_id = id) GROUP BY template_id
--------------------------------------------------------------------------------------------------------------
this query has been running for 30+minutes from just clicking on the base statistics page for a win32 resource
did the upgrade process drop/forget some indexes?
I have already logged in and run vacuum analyze..
Any suggestions? Roll back to 4.0.2?