<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=Extacting_Time_Series_with_MSSQL</id>
	<title>Extacting Time Series with MSSQL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://performiq.com/kb/index.php?action=history&amp;feed=atom&amp;title=Extacting_Time_Series_with_MSSQL"/>
	<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Extacting_Time_Series_with_MSSQL&amp;action=history"/>
	<updated>2026-05-18T12:41:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://performiq.com/kb/index.php?title=Extacting_Time_Series_with_MSSQL&amp;diff=3704&amp;oldid=prev</id>
		<title>PeterHarding: Created page with &#039; Validate the speeds and feeds I have used by examining the rate at which records are written to the database.  For example, looking at the Weigh_Event_Log table, I construct the...&#039;</title>
		<link rel="alternate" type="text/html" href="https://performiq.com/kb/index.php?title=Extacting_Time_Series_with_MSSQL&amp;diff=3704&amp;oldid=prev"/>
		<updated>2011-11-07T22:01:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039; Validate the speeds and feeds I have used by examining the rate at which records are written to the database.  For example, looking at the Weigh_Event_Log table, I construct the...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
Validate the speeds and feeds I have used by examining the rate at which records are written to the database.  For example, looking at the Weigh_Event_Log table, I construct the following query&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  select  convert(varchar, DateTime, 112), count(1)&lt;br /&gt;
    from  dbo.Event_Log&lt;br /&gt;
   where  DateTime &amp;gt; getdate() - 360&lt;br /&gt;
group by  convert(varchar, DateTime, 112)&lt;br /&gt;
order by  convert(varchar, DateTime, 112) desc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note - see http://msdn.microsoft.com/en-us/library/aa226054%28v=sql.80%29.aspx for conversion Style Codes&lt;br /&gt;
&lt;br /&gt;
And it produces the following output &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Date      # Log Entries&lt;br /&gt;
20110921    24026&lt;br /&gt;
20110920    32063&lt;br /&gt;
20110919    27166&lt;br /&gt;
20110918    12946&lt;br /&gt;
20110917     5588&lt;br /&gt;
20110916    26410&lt;br /&gt;
20110915    32061&lt;br /&gt;
20110914    31566&lt;br /&gt;
20110913    33670&lt;br /&gt;
20110912    27451&lt;br /&gt;
...&lt;br /&gt;
20110725    25688&lt;br /&gt;
20110724    11696&lt;br /&gt;
20110723     5884&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This shows that an upper limit for a day is around 32,000.  So pick one of those days - 20110920 - and do a further drill down using the following query:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  select  convert(varchar, DateTime, 100), count(1)&lt;br /&gt;
    from  dbo.Event_Log&lt;br /&gt;
   where  Date_Time &amp;gt;= &amp;#039;2011-09-20&amp;#039;&lt;br /&gt;
     and  Date_Time &amp;lt;  &amp;#039;2011-09-21&amp;#039;&lt;br /&gt;
group by  convert(varchar, DateTime, 100)&lt;br /&gt;
order by  convert(varchar, DateTime, 100) desc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With some simple data manipulation and a bit of help from Excel I get the following minute by minute distribution graph - which incidentally does indeed support the thesis that the peak rate is a bit over one per second (up to 75 per minute).&lt;br /&gt;
&lt;br /&gt;
In this way create a picture of processing rate of events.&lt;br /&gt;
&lt;br /&gt;
[[Category:Performance]]&lt;br /&gt;
&lt;br /&gt;
[[Category:SqlServer]]&lt;/div&gt;</summary>
		<author><name>PeterHarding</name></author>
	</entry>
</feed>