I am trying to compress extra performance when searching a table with many rows. My current reasoning is that if I can throw some of the rarely used item out of the lookup table, thereby reducing the number of rows in the row, and therefore IO should drop, giving an advantage when the data starts to leak from memory.
Any good resource describing such effects? Any experiences?
Thank.
Setting the row size is only a serious problem, if the DBMS performs a full scan of the row table, if your query can select rows using only indexes, then the row size is less important (if you do not return a very large number of rows, where the IO to return the actual result is significant )
If you are doing a full table scan or a partial scan of a large number of rows, because you have predicates that don't use indexes, then primaryness can be a major factor. One example that I remember in a table of the order of 100,000,000 rows dividing large columns of “data” into another table from the columns used for queries led to some improvement in the performance of some queries.
, .
, , , . , . . , .
, , iostatistics. . - > .
sql- - , , , , , , .
, : :)
, , , ..
, sql scna ( , ), io- . , ( ).
, , . .
- , .
, 1: M, , , , , . , , . , .
- , , . IO, , , , , ., , HW, , , , SQL< /" > - SQL Server . - , . - , :
.(RAID).RAID, ., ., / .Microsoft SQL Server - Microsoft Windows . SQL Server , -, Windows -. , I/O, .
-. , .
, , , ; , ( SQL Server 2005 - ), , ( ).
, ( ) , , :
SET STATISTICS IO ON GO -- Execute your query here SET STATISTICS IO OFF GO
( , ). ? , . - , ( ), . , .
I think that you are going to move forward using standard optimization methods first - check your execution plan, profiler trace, etc. and see if you need to customize indexes, create statistics, etc. - before looking at the physical structure of your table.
Source: https://habr.com/ru/post/1697968/More articles:Asp.Net MVC: Is there support for controller-level filter attributes? - c #Any view implementation for a JSP-Servlet application? - jspHow to sort the general list? - genericsGet my WAN IP Address - web-servicesSee Javascript File in JQuery - jqueryWhere to start with HDL? - embeddedRegular Expression Algorithm - regexGetting rid of the evil delay caused by ShellExecute - c ++SecurityException error when an application starts from a remote folder - securityCreate RegEx from matches - c #All Articles