Subject Re: [firebird-support] Best way to delete millions of rows
Author Svein Erling Tysvær
Hi Thomas!

When driving my car during rush hours, I may get irritated, but I still don't consider it a bug that the traffic - including my car - moves very slowly. Similarly, I do not consider this a bug in Firebird, although I of course would agree that ideally it could be better. From the user perspective, it is possibly a bug in your system though, you should try to avoid congestion. As Karol says, one way to do this, is to delete a few rows frequently rather than many rows simultaneously, e.g. delete records older than 183 days every hour (if the field is indexed, but the plan reveals that it is not used, you could try to delete records that are between 183 and 184 days old) and not once a month (that could require having a timestamp and not just date field).

HTH,
Set