Monday, 31 October 2016

[firebird-support] Re: Best way to delete millions of rows

 

---In firebird-support@yahoogroups.com, <kragh.thomas@...> wrote :


Hey

I have a database that needs some cleanup, in some tables i need to delete millions of rows. I performed the cleanup on a copy of the production database in a development environment, using:


delete from table where created < dateadd(-6 month to current_date)

followed by a count(*) on the table


Here you delete some records, but then count whole table.
Add same "where" condition as in "count" query

Regards,
Vlad

__._,_.___

Posted by: hvlad@users.sourceforge.net
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (4)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Documentation item
on the main (top) menu.  Try FAQ and other links from the left-side menu there.

Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

.

__,_._,___

No comments:

Post a Comment