Long execution time in new query window
Hi, it takes a long time to query anything like table.Take(100) or .Count. no matter the table is full or empty. It's about 2.5 seconds. After the initial query, subsequent queries in OPENED window take reasonable time, about 0.076 seconds.
It's not a cache problem. If I close the window and query table.Take(100) it takes another 2.5 seconds to display result in new window.
What would be the problem? Is it Linqpad issue, Oracle one or anything else?
Linqpad v4.48.01 anycpu, Windows 8 64 bit, Oracle 11 on Linux.
It's not a cache problem. If I close the window and query table.Take(100) it takes another 2.5 seconds to display result in new window.
What would be the problem? Is it Linqpad issue, Oracle one or anything else?
Linqpad v4.48.01 anycpu, Windows 8 64 bit, Oracle 11 on Linux.
Comments
You can easily test this, by pressing Shift-F5 after executing the query a few times. Shift-F5 will discard the AppDomain, so that LINQPad will create a new AppDomain next time you run the query. So if the query is taking longer after you hit Shift-F5 too, you know that it's very likely to be caused by it spinning up an AppDomain for your query to run in.
Does a similar "SELECT * FROM table WHERE ROWNUM < 100" exhibit similar performance in SQLPLUS?