| Author |
Topic |
|
iamagui
Starting Member
5 Posts |
Posted - 2011-05-04 : 12:03:09
|
| Hi,I am newbie. I want to find out the database write speed. I have a MSSQL 2008 R2 on my desktop and I use Visual Studio to execute simple queries. I want to find out the write speed as the rows and columns increases to determine the optimum speed. Please help. Kindly let me know if I am not clear and need more information, thanks in advance. |
|
|
russell
Pyro-ma-ni-yak
5072 Posts |
Posted - 2011-05-04 : 13:24:29
|
| Using perfmon, you'll want to monitor avg disk sec/Write |
 |
|
|
iamagui
Starting Member
5 Posts |
Posted - 2011-05-04 : 17:36:45
|
| Thanks Russell. But I am looking for some query to create data and load to the database and check the time. Right now, I am doing{1. DateTime2. Insert few rows to the table in database3. DateTime} |
 |
|
|
russell
Pyro-ma-ni-yak
5072 Posts |
Posted - 2011-05-04 : 19:29:44
|
| But (1) you already have that apparently and (2) it doesn't prove anything -- unless that query is the only thing happening on the server. Plus, that isn't measuring write speed. It's measuring query execution duration.Better to measure reads, writes and cpu time for the query if you want it to be query specific. You can do this via profiler if you want, or just set statistics io and statistics time on and execute it a few times. |
 |
|
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2011-05-05 : 01:44:34
|
| The only thing that inserting a few rows into a table measures is the speed of inserting a few rows into that table. It's not measuring time to write to disk (changes are made in memory) and it's not a time measurement that can be extrapolated to anything else--Gail ShawSQL Server MVP |
 |
|
|
iamagui
Starting Member
5 Posts |
Posted - 2011-05-05 : 12:59:07
|
| Thanks Russell and Gail, I will get back to you guys after running few things. |
 |
|
|
iamagui
Starting Member
5 Posts |
|
|
russell
Pyro-ma-ni-yak
5072 Posts |
Posted - 2011-05-09 : 19:00:28
|
| I'd suggest monitoring Disk Writes/Bytes per second instead.Rows per second is arbitrary and somewhat meaningless.If you feel you must have it, know that it will change from time to time, but you can submit it in batches of known # of rows and use profiler to capture duration. |
 |
|
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2011-05-10 : 04:23:17
|
| In addition to what Russell said, rows/sec is unrelated to disk writes, as the rows are inserted into cache and flushed to disk sometime later.--Gail ShawSQL Server MVP |
 |
|
|
iamagui
Starting Member
5 Posts |
Posted - 2011-05-11 : 12:45:46
|
| Many thanks again Russell and Gail, I will let you know if I have any questions. |
 |
|
|
|