September 16, 2022 at 11:43 am
Hello everyone,
I am trying to clear my concepts about Indexing in SQL.
I have a SSIS package. Basic purpose of this package is to fetch XML files data into SQL tables.
SSIS Steps:
I have noticed as the rows increases the update query timing also increases even though I have defined that it only applies to those rows which are new.
How do I improve this timing? Do I need to create more Indexes as compared to the ones already created when creating keys in step 3?
Also when should one create indexes on tables? Before adding the data or after?
And what if data updates in the tables? Do we need to re-create indexes as well?
Thanks.
September 17, 2022 at 12:10 pm
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
September 20, 2022 at 12:25 pm
Hi,
we don't know how many rows you've got, but it is better, if you create an index after you put all the data in the table.
If your application will change many data, it maybe helpfull, to do some maintenance on the index. But it depends on your index, on your workload, nobody can tell you what to do, without more information.
There are good article, how someone discribes, that is sometimes faster, to rebuild an index, than to reorg an index.
And take a look at the index maintenance from Ola Hallengreen.
Kind regards,
Andreas
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply