dbTalk Databases Forums  

Performance of SQL query for reading from trace file

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Performance of SQL query for reading from trace file in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Munish Narula
 
Posts: n/a

Default Performance of SQL query for reading from trace file - 02-21-2008 , 08:35 AM






I am using fn_trace_gettable for fetching records from trace file which is
around 256 MB. the query is something like

select * from fn_trace_gettable('c:\traces\trace.trc', 1);

This query takes around 133 sec to fetch records and the time taken to run
the query increases as the size of the file increases.

Please let me know how can i tune the query so that the query becomes faster.

Note: I cannot use a where clause for fetching data, I have to fetch all
the records at once.

Reply With Quote
  #2  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Performance of SQL query for reading from trace file - 02-21-2008 , 01:24 PM






That pretty slow as I can read that on my laptop in just a few seconds. I
suspect your hardware is way underpowered. I would expect that adding memory
and increasing the CPU speed will help the most. Also make sure you don't
have an Antivirus program that is scanning the file as you read it.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Munish Narula" <munish.narula (AT) wipro (DOT) com> wrote

Quote:
I am using fn_trace_gettable for fetching records from trace file which is
around 256 MB. the query is something like

select * from fn_trace_gettable('c:\traces\trace.trc', 1);

This query takes around 133 sec to fetch records and the time taken to run
the query increases as the size of the file increases.

Please let me know how can i tune the query so that the query becomes
faster.

Note: I cannot use a where clause for fetching data, I have to fetch all
the records at once.


Reply With Quote
  #3  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Performance of SQL query for reading from trace file - 02-21-2008 , 01:24 PM



That pretty slow as I can read that on my laptop in just a few seconds. I
suspect your hardware is way underpowered. I would expect that adding memory
and increasing the CPU speed will help the most. Also make sure you don't
have an Antivirus program that is scanning the file as you read it.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Munish Narula" <munish.narula (AT) wipro (DOT) com> wrote

Quote:
I am using fn_trace_gettable for fetching records from trace file which is
around 256 MB. the query is something like

select * from fn_trace_gettable('c:\traces\trace.trc', 1);

This query takes around 133 sec to fetch records and the time taken to run
the query increases as the size of the file increases.

Please let me know how can i tune the query so that the query becomes
faster.

Note: I cannot use a where clause for fetching data, I have to fetch all
the records at once.


Reply With Quote
  #4  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Performance of SQL query for reading from trace file - 02-21-2008 , 01:24 PM



That pretty slow as I can read that on my laptop in just a few seconds. I
suspect your hardware is way underpowered. I would expect that adding memory
and increasing the CPU speed will help the most. Also make sure you don't
have an Antivirus program that is scanning the file as you read it.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Munish Narula" <munish.narula (AT) wipro (DOT) com> wrote

Quote:
I am using fn_trace_gettable for fetching records from trace file which is
around 256 MB. the query is something like

select * from fn_trace_gettable('c:\traces\trace.trc', 1);

This query takes around 133 sec to fetch records and the time taken to run
the query increases as the size of the file increases.

Please let me know how can i tune the query so that the query becomes
faster.

Note: I cannot use a where clause for fetching data, I have to fetch all
the records at once.


Reply With Quote
  #5  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Performance of SQL query for reading from trace file - 02-21-2008 , 01:24 PM



That pretty slow as I can read that on my laptop in just a few seconds. I
suspect your hardware is way underpowered. I would expect that adding memory
and increasing the CPU speed will help the most. Also make sure you don't
have an Antivirus program that is scanning the file as you read it.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Munish Narula" <munish.narula (AT) wipro (DOT) com> wrote

Quote:
I am using fn_trace_gettable for fetching records from trace file which is
around 256 MB. the query is something like

select * from fn_trace_gettable('c:\traces\trace.trc', 1);

This query takes around 133 sec to fetch records and the time taken to run
the query increases as the size of the file increases.

Please let me know how can i tune the query so that the query becomes
faster.

Note: I cannot use a where clause for fetching data, I have to fetch all
the records at once.


Reply With Quote
  #6  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Performance of SQL query for reading from trace file - 02-21-2008 , 01:24 PM



That pretty slow as I can read that on my laptop in just a few seconds. I
suspect your hardware is way underpowered. I would expect that adding memory
and increasing the CPU speed will help the most. Also make sure you don't
have an Antivirus program that is scanning the file as you read it.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Munish Narula" <munish.narula (AT) wipro (DOT) com> wrote

Quote:
I am using fn_trace_gettable for fetching records from trace file which is
around 256 MB. the query is something like

select * from fn_trace_gettable('c:\traces\trace.trc', 1);

This query takes around 133 sec to fetch records and the time taken to run
the query increases as the size of the file increases.

Please let me know how can i tune the query so that the query becomes
faster.

Note: I cannot use a where clause for fetching data, I have to fetch all
the records at once.


Reply With Quote
  #7  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Performance of SQL query for reading from trace file - 02-21-2008 , 01:24 PM



That pretty slow as I can read that on my laptop in just a few seconds. I
suspect your hardware is way underpowered. I would expect that adding memory
and increasing the CPU speed will help the most. Also make sure you don't
have an Antivirus program that is scanning the file as you read it.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Munish Narula" <munish.narula (AT) wipro (DOT) com> wrote

Quote:
I am using fn_trace_gettable for fetching records from trace file which is
around 256 MB. the query is something like

select * from fn_trace_gettable('c:\traces\trace.trc', 1);

This query takes around 133 sec to fetch records and the time taken to run
the query increases as the size of the file increases.

Please let me know how can i tune the query so that the query becomes
faster.

Note: I cannot use a where clause for fetching data, I have to fetch all
the records at once.


Reply With Quote
  #8  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Performance of SQL query for reading from trace file - 02-21-2008 , 01:24 PM



That pretty slow as I can read that on my laptop in just a few seconds. I
suspect your hardware is way underpowered. I would expect that adding memory
and increasing the CPU speed will help the most. Also make sure you don't
have an Antivirus program that is scanning the file as you read it.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Munish Narula" <munish.narula (AT) wipro (DOT) com> wrote

Quote:
I am using fn_trace_gettable for fetching records from trace file which is
around 256 MB. the query is something like

select * from fn_trace_gettable('c:\traces\trace.trc', 1);

This query takes around 133 sec to fetch records and the time taken to run
the query increases as the size of the file increases.

Please let me know how can i tune the query so that the query becomes
faster.

Note: I cannot use a where clause for fetching data, I have to fetch all
the records at once.


Reply With Quote
  #9  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Performance of SQL query for reading from trace file - 02-21-2008 , 01:24 PM



That pretty slow as I can read that on my laptop in just a few seconds. I
suspect your hardware is way underpowered. I would expect that adding memory
and increasing the CPU speed will help the most. Also make sure you don't
have an Antivirus program that is scanning the file as you read it.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Munish Narula" <munish.narula (AT) wipro (DOT) com> wrote

Quote:
I am using fn_trace_gettable for fetching records from trace file which is
around 256 MB. the query is something like

select * from fn_trace_gettable('c:\traces\trace.trc', 1);

This query takes around 133 sec to fetch records and the time taken to run
the query increases as the size of the file increases.

Please let me know how can i tune the query so that the query becomes
faster.

Note: I cannot use a where clause for fetching data, I have to fetch all
the records at once.


Reply With Quote
  #10  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Performance of SQL query for reading from trace file - 02-21-2008 , 01:24 PM



That pretty slow as I can read that on my laptop in just a few seconds. I
suspect your hardware is way underpowered. I would expect that adding memory
and increasing the CPU speed will help the most. Also make sure you don't
have an Antivirus program that is scanning the file as you read it.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"Munish Narula" <munish.narula (AT) wipro (DOT) com> wrote

Quote:
I am using fn_trace_gettable for fetching records from trace file which is
around 256 MB. the query is something like

select * from fn_trace_gettable('c:\traces\trace.trc', 1);

This query takes around 133 sec to fetch records and the time taken to run
the query increases as the size of the file increases.

Please let me know how can i tune the query so that the query becomes
faster.

Note: I cannot use a where clause for fetching data, I have to fetch all
the records at once.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.