Re: Delete query taking long time to execute
- From: "Hari Prasad" <hari_prasad_k@xxxxxxxxxxx>
- Date: Thu, 23 Nov 2006 02:08:26 -0600
Hi,
This is because of the multiple relationship. While deleting it checks all
the relationship. Where as if you execute a SELECT statement for the same
query
it will be faster. If you can do this during offline you could disable the
constraints [See ALTER TABLE WITH NOCHECK] to make the DELETE faster.
Since the number of records is very less it is not required to disable the
constratins
Thanks
Hari
"Somesh" <Somesh@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FD6E5B4A-34AF-4CF9-948D-6EA21944587C@xxxxxxxxxxxxxxxx
hi,
I have a table which is a Master to other 12 tables and it is Child for
other 2 tables.
Therefore, It has 14 relationships with other tables. The size of table is
very small. (approx 30-40 rows). It also has a clustered index in its
primary
key.
The problem I am facing here is that when I try to delete a row from the
table using its primary key in where clause, it takes more than 30 seconds
to
execute it. Any subsequent attempt will be of a shorter duration (approx
20-25 sec.) but still it is very time taking.
I can't understand what could be the problem here when the table size is
very small. Is it because of constraints or any other sort.
Please comment if you have any idea about it. Any help would be highly
appreciated.
Thanks!
Regards,
~Somesh
.
- Follow-Ups:
- Re: Delete query taking long time to execute
- From: Hugo Kornelis
- Re: Delete query taking long time to execute
- Prev by Date: Re: MS Access query
- Next by Date: Re: Delete query taking long time to execute
- Previous by thread: MS Access query
- Next by thread: Re: Delete query taking long time to execute
- Index(es):
Relevant Pages
|
|