Page 1 of 1

OracleDatasource produce a lot of select count(*)

Posted: Sat 20 Aug 2011 13:22
by hannes_a
OracleDatasource produce a lot of
select count(*) (select * from xyz /*my ordinary query*/)
for understanding: which part needs the affected rows ?
when I don't need it, can I stop this ?

Posted: Wed 24 Aug 2011 13:24
by StanislavK
These statements are necessary for data paging: OracleDataSource needs the total count of rows in the result set to count the page number.

If you are displaying fetched data on a single page, you can disable paging (set the 'DataPagingMode' property of OracleDataSource to 'Disabled') to cancel these additional queries.