So my .NET utility is performing massive amounts of inserts dynamically and it would make sense to drop the index while performing these and reconstructing it after performing the inserts.
Is the best way to do this using OracleCommand and setting command text to literal SQL?
So for example:
OracleCommand dropIndexCommand = new OracleCommand();
dropIndexCommand.CommandText = "DROP INDEX MYIDX";
And after wards:
OracleCommand reconstructIndexCommand = new OracleCommand();
reconstructIndexCommand.CommandText = "CREATE INDEX MYIDX ON...";
Good? Bad? Ugly?