the "where" part of the update statment
- From: "Fotis Mylonas" <fmylon@xxxxxxxxxxx>
- Date: Wed, 18 Oct 2006 15:50:25 +0300
Hallo,
i noticed in the sql profiler that the ADO dataset produces an update
statment with many "AND" like:
update table set field=value
where primary key=value and this and that and the other and so on.
i understand this is used in a lock optimistick scenario in order to catch
possible changes that may have happned from other users, on the same row i
had modified.
But what if i dont want to use this locking mechanism and instead use mine?
How can i still use batch optimistic mode and at the same time instruct the
ado dataset to use only the primary key column in the update statement?
This has tramendous diference in perfomance in large tables.
We cannot index every column of course.
Any help?
Thanks very much,
Fotis.
.
- Follow-Ups:
- Re: the "where" part of the update statment
- From: Bob Barrows [MVP]
- Re: the "where" part of the update statment
- Prev by Date: Re: Communication Link Failure Error
- Next by Date: Re: the "where" part of the update statment
- Previous by thread: Re: Communication Link Failure Error
- Next by thread: Re: the "where" part of the update statment
- Index(es):
Relevant Pages
|
Loading