You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the new versions you using many trace output to the debug window of Visual Studion 2010.
This slows down dramatically the entire application.
Please make this feature configurable, so i can turn off or turn on this trace.
I have downloaded the actual source 2.7.5 and made a little modification:
public static class TraceHelper
\{
public const string Name = "FirebirdSql\.Data\.FirebirdClient";
public const string ConditionalSymbol = "TRACE";
static TraceSource \_instance;
static bool \_Activated = true;
public static bool TraceActivated
\{
get \{ return \_Activated;\}
set
\{
\_Activated = value;
\}
\}
static TraceHelper\(\)
\{
\_instance = new TraceSource\(Name, SourceLevels\.All\);
\}
public static void Trace\(TraceEventType eventType, string format, params object\[\] args\)
\{
if \(\_Activated == true\) \{
\_instance\.TraceEvent\(TraceEventType\.Information, default\(int\), format, args\);
\_instance\.Flush\(\);
\}
\}
\}
On a simple ExecuteReader the execution time is reduced from 0.87 seconds to 0.12 seconds!
The reason is, that http://ADO.NET executes for each column a new SQL, that will also be traced to the output.
It would by nice, to have this feature automaticly.
The text was updated successfully, but these errors were encountered:
Submitted by: Baldur Fürchau (bfuerchau)
In the new versions you using many trace output to the debug window of Visual Studion 2010.
This slows down dramatically the entire application.
Please make this feature configurable, so i can turn off or turn on this trace.
I have downloaded the actual source 2.7.5 and made a little modification:
No i can in my application simply set
On a simple ExecuteReader the execution time is reduced from 0.87 seconds to 0.12 seconds!
The reason is, that http://ADO.NET executes for each column a new SQL, that will also be traced to the output.
It would by nice, to have this feature automaticly.
The text was updated successfully, but these errors were encountered: