I have a query that runs super fast when executed in the sql editor (oracle): 1ms.
The same query (as stored procedure) when executed by a DataSet-TableAdapter takes 2 seconds. I'm just retrieving 20rows.
Since I'm using a TableAdapter, the return values are stored in a ref cursor.
If I was fetching 2'000 rows I could understand that some time is needed to build the DataSet, but 2 seconds for only 20 rows seems too much for me.
There is a better way to execute SP on oracle or this is the only way? What could I try to do to improve the performances?
Thanks for your help!