Let?s say you have 100,000 records and you want to delete
95,000 at a time and keep only 5 thousand. But in local
memory you don?t have enough space for 95,000 records. What
do you do in this case? How do you delete without any
problem with time and performance?
Answers were Sorted based on User's Feedback
Answer / manjeet
First select the 5000 records u want to keep.. put it in
memory.. then delete the entire table.. and then put this
5000 record table in place
Is This Answer Correct ? | 8 Yes | 1 No |
Answer / pankaj gupta
First create a table using select statement with 5000 records u want to keep.. put it in memory.. then drop/truncate (not delete, that is the basic problem) the entire table.. and then put this 5000 record table in place
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / java
Do the batch delete.
ie Delete the set of records in loop and commit the transaction
Is This Answer Correct ? | 1 Yes | 0 No |
What is the purpose of using a model?
Can A CONTROL BLOCK can sometimes refer to a Basetable ?
Describe the four types of indexes.
Which factors does not affect the size of the SGA ?
How to Ensure Data Integrity in a Relational Database?
What the default privileges which get assigned ?
What is the maximum size of an access database?
What is the advantage of database management system?
What is a key in dbms?
How the size of the table space can be increased?
what is difference between clustering and mirroring?
How do I convert a spreadsheet to a database?