Hi All,
In my code I have a Query like this
SELECT id,name
FROM people
I retrieve datas using a sqldatareader.
If I change my query for
SELECT id,name
FROM people
WHERE NOT EXISTS(
SELECT *
FROM people_died
WHERE people_died.id = people.id
)
I can see with dotTrace that the calls to getvalue takes longer with the second query, so I'd like to know why ...
If you're absolutely sure that's not the good reason, can you tell me what can possibly affect the performance of SqlDataReader.getValue ?
Thanks
EDIT : Is it possible that it depends on column from table "people" that are not in the query ? (there is a lot of ntext column in this table for instance)