What would you use to improve performance on an insert
statement that places millions of rows into that table?
Answers were Sorted based on User's Feedback
Answer / setaceo
1. DML Triggers to be DISABLED and then ENABLED once the
insert completed.
2. DISABLE the Clustered Index and then ENABLED once the
insert completed.
3. After completion of INSERT, Defragmentation should be
there.
4. After completion of INSERT, Statistics should be updated.
5. (Optional) If it is non-peek time & This is the only
activity is going on then, Database recovery mode should be
SIMPLE / BULK-LOGGED. ( It should not be there along with
other activities....)
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / braj123
Check that any indexes are there.
Drp the indexes and recreate after insert.
| Is This Answer Correct ? | 4 Yes | 1 No |
What are the different types of upgrades that can be performed in sql server? : sql server DBA
Hot backup procedure?
When creating a user, what permissions must you grant to allow them to connect to the database?
Database is hung. Old and new user connections alike hang on impact. What do you do? Your SYS SQLPLUS session IS able to connect.
what do you understand by flashback feature of oracle?
What background process refreshes materialized views?
2 Answers Accenture, FLSmidth,
How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?
If you're unsure in which script a sys or system-owned object is created, but you know it's in a script from a specific directory, what UNIX command from that directory structure can you run to find your answer?
How can you enable a trace for a session?
what is the last version,the release date of that version and fix pack of ibm db2 udb?
List out some of the requirements to setup a sql server failover cluster.? : sql server DBA
how can you implement fine-grained auditing?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)