Table space occupancy rate has reached 98%
One form with exclusive 74 g table space, there are about 160 million rows of data by querying the table, including about 100 million data can be deleted, so decided to first from the table, as described above, table space is insufficient, can't use the first put the useful data in the temporary table, then delete the original table, after the temporary table name method, cannot use TRUNCATE,
Final thought way is to delete by time bit by bit, and then use the alter table table_name shring space to high water level,
But after delete part of the data, to query the table again (select directly, without any conditions) found that the new data and keep the old data shows (below, though this can't say it, but often a new list according to time order inserting data directly select the default is in order to show), and observe for a few hours, found no increase this table takes up space, I think, that a new insert data automatically fill to delete data on the space occupied?
CodePudding user response:
If new data is indeed fill on the original space, is that I don't have to perform high water level of the statement, you just do a table analysis?CodePudding user response: