As the housekeeper is running for ages, I accidentially found during debugging some items in the housekeepers list, that do no longer exist:
There are also some trends archieved for non-existing items:
I dont think these data can be accessed any more. Can I delete those entries in the housekeepers and trends table?
Code:
select distinct value from housekeeper where value not in ( select itemid from items ); [...] 15992 rows in set (0.36 sec)
Code:
mysql> select count(*) from history_uint where itemid not in ( select itemid from items ); +----------+ | count(*) | +----------+ | 0 | +----------+ 1 row in set (1 min 45.59 sec) mysql> select count(*) from history where itemid not in ( select itemid from items ); +----------+ | count(*) | +----------+ | 0 | +----------+ 1 row in set (1 min 13.04 sec) mysql> select count(*) from trends where itemid not in ( select itemid from items ); +----------+ | count(*) | +----------+ | 0 | +----------+ 1 row in set (1 min 5.27 sec) mysql> select count(*) from trends_uint where itemid not in ( select itemid from items ); +----------+ | count(*) | +----------+ | 4221509 | +----------+ 1 row in set (54.95 sec)
But required buffersize/RAM will decrease
Comment