
harald.leithner at itronic
Jul 31, 2013, 2:27 AM
Post #4 of 6
(46 views)
Permalink
|
Hi Paul, if you have time, it would be great if you can add these two queries to dbmail-utils on headercheck/repair. --- delete from dbmail.dbmail_headername where id not in (select headername_id from dbmail.dbmail_header) limit 50000; delete from dbmail.dbmail_headervalue where id not in (select headervalue_id from dbmail.dbmail_header) limit 50000; --- limit would be a great idea, because first time executions could took really long if you have 1.2M unconnected headervalues. thx Harald Am 15.05.2012, 17:14 Uhr, schrieb ITronic Harald Leithner <harald.leithner [at] itronic>: > Hi Leandro, > > there is already a good solution for this: > http://www.gossamer-threads.com/lists/dbmail/users/31530#31530 > > But I think Paul has other things to develop, may you could write the > code that do this? > > bye > > HArald > > Am 15.05.2012, 17:08 Uhr, schrieb leandro <leandro [at] texnet>: > >> Hello, >> am I wrong or there is no dbmail-util procedure to delete headervalues >> no more connected to messages? >> >> After deleting some users directly from the dbmail_database and running >> the dbmail-util -ay housekeeping utility, I noticed the >> dbmail_headervalue table size remains pretty the same. >> >> If I run manually the query: >> >> select count(*) from dbmail_headervalue where id not in ( select >> headervalue_id from dbmail_header ); >> >> I discovered a large number of no more connected header values. >> >> Almost the same if I check the headernames with the query: >> >> select count(*) from dbmail_headername where id not in ( select >> headername_id from dbmail_header ); >> >> Leandro >> >> _______________________________________________ >> DBmail mailing list >> DBmail [at] dbmail >> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail > _______________________________________________ > DBmail mailing list > DBmail [at] dbmail > http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail -- Harald Leithner ITronic Vogelweidplatz 12, 1150 Wien, Austria Tel: +43-1-786 23 88 Fax: +43-1-98 52 077 Mobil: +43-699-123 78 4 78 Mail: leithner [at] itronic | itronic.at _______________________________________________ DBmail mailing list DBmail [at] dbmail http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
|