Feed
Google+
Contact
XING
LinkedIn
Twitter
ICQ
meebo.com

MS SQL Server - query's tune - part II

by Roland Schumacher alias GENiALi 10. April 2007 -- 131 words  -- 1 mal gelesen

After the first tuning attempts, it was already essential
better to SQL Server. I had in my applications logs
time out's no more. So far so good.

Easter I read but on the Profiler run to look
whether more queries take that have a long term.

These two queries are arranged me.

SELECT COUNT(Hst_ID) FROM CATI_History WHERE (CheckFlagTransform = 0)

CheckFlagTransform is a bit field.

Familiar with only 0 or 1.
The table has today (shareholder) the 8.4 million record's in it.
The count is always between 200 and 10'000 row's.

So sometimes, I created an index on the field CheckFlagTransform.

This time the surprise was great. Of prior
> 60'000ms remained still < 1'000ms left. This query
was faster with a simple index factors.

It was only necessary here.

Tags:

Kommentare sind geschlossen

Statistik

Gesamte Posts: 1025
Dieses Jahr: 7
Diesen Monat: 1
Diese Woche: 0
Kommentare: 929
Total Bewertungen: 91
Ø Bewertung: 4,42
Meisten Kommentare
Google+ ... (28)
Beste Ø Bewertung
Tastaturlayout von Visual Stud ... (5)
Meiste Bewertungen
Windows 7 und die ersten Erfah ... (5)

Buttons

Stop Spam Harvesters, Join Project Honey Pot Benutzerprofil von GENiALi connection speed test network connection Bloggeramt.de Slug.ch Blog Verzeichnis und Blog Webkatalog Schumacher Roland Seitwert Valid XHTML 1.0 Transitional

writing