![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Greetings, any possibilites in ASA 9 and SA 11 finding out the exact size of a row in e.g. bytes? Thanks in advance, Pavel |
#3
| |||
| |||
|
|
Greetings, any possibilites in ASA 9 and SA 11 finding out the exact size of a row in e.g. bytes? Thanks in advance, Pavel |
#4
| |||
| |||
|
|
If the number of pages is really small, Foxhound doesn't give a row size since overhead may grossly skew the number (1 ten-byte row in one 16K page would give "16K row size"). |
#5
| |||
| |||
|
|
Breck, just to clarify... Regardss Volker Breck Carter [TeamSybase] wrote: If the number of pages is really small, Foxhound doesn't give a row size since overhead may grossly skew the number (1 ten-byte row in one 16K page would give "16K row size"). Or "If the number of rows is really small,"? (Would make more sense IMHO). |


#6
| |||
| |||
|
|
On 18 Jan 2010 04:57:12 -0800, Volker Barth No_VBarth (AT) Spam_GLOBAL-FINANZ (DOT) de> wrote: Breck, just to clarify... Regardss Volker Breck Carter [TeamSybase] wrote: If the number of pages is really small, Foxhound doesn't give a row size since overhead may grossly skew the number (1 ten-byte row in one 16K page would give "16K row size"). Or "If the number of rows is really small,"? (Would make more sense IMHO). You be the judge... |

|
Here is what the Foxhound Help says: "The bytes per row amount is based on the disk space used for table data, extension and index pages. It doesn't include free pages in the database, but it does count free space in pages allocated to this table. As such, this number is usually larger, sometimes quite a bit larger, than the average number of bytes a query might return. To avoid showing inflated numbers for very small tables, the bytes per row is only shown for tables with at least 2 data or 2 extension pages. " Foxhound will show bytes per row for a table with one row that is 100,000 bytes in length, but not for a table with 100 rows that are 1 byte each, since the latter will take up one page for data and (probably) one page for index, and 8K / 100 gives you 82 bytes per row which is useless for predicting future disk space requirements. Referring back to the Help excerpt above, there is "sometimes quite a bit larger" and then there's "ridiculous"... anyway, that's the philosophy behind Foxhound, tell you things you probably need to know, if you want other information there's always dbisql and SELECT<g>. (Don't you just hate that, when software gives you the answer some stinking programmer thinks you SHOULD have asked, instead of the question you are really asking? ![]() Breck Is Clearly NOT A Salesperson PS the part of Foxhound that shows bytes per row for all your tables will always be free, since that part of Foxhound will continue to work after the evaluation period is over. Just the monitor part will stop working (and by implication, the alerts function). PPS Foxhound also has a cool list, ranks "biggest tables" using both row count and space usage... shows you all your Tables From Hell at a glance. Foxhound is the consultant's friend ![]() -- Breck Carter - Blog: http://sqlanywhere.blogspot.com/ SQLA questions and answers: http://sqla.stackexchange.com RisingRoad helps SQL Anywhere developers make better databases http://www.risingroad.com/ Breck.Carter at gmail |
#7
| |||
| |||
|
|
Breck Carter [TeamSybase] wrote: On 18 Jan 2010 04:57:12 -0800, Volker Barth No_VBarth (AT) Spam_GLOBAL-FINANZ (DOT) de> wrote: Breck, just to clarify... Regardss Volker Breck Carter [TeamSybase] wrote: If the number of pages is really small, Foxhound doesn't give a row size since overhead may grossly skew the number (1 ten-byte row in one 16K page would give "16K row size"). Or "If the number of rows is really small,"? (Would make more sense IMHO). You be the judge... Breck, well, obviously you put a lot more thought and common sense on this topic than I did - so I plead for acquintal ![]() I hope my use of these legal terms is correct as Volker Is NEITHER A Salesperson NOR A Laywer Here is what the Foxhound Help says: "The bytes per row amount is based on the disk space used for table data, extension and index pages. It doesn't include free pages in the database, but it does count free space in pages allocated to this table. As such, this number is usually larger, sometimes quite a bit larger, than the average number of bytes a query might return. To avoid showing inflated numbers for very small tables, the bytes per row is only shown for tables with at least 2 data or 2 extension pages. " Foxhound will show bytes per row for a table with one row that is 100,000 bytes in length, but not for a table with 100 rows that are 1 byte each, since the latter will take up one page for data and (probably) one page for index, and 8K / 100 gives you 82 bytes per row which is useless for predicting future disk space requirements. Referring back to the Help excerpt above, there is "sometimes quite a bit larger" and then there's "ridiculous"... anyway, that's the philosophy behind Foxhound, tell you things you probably need to know, if you want other information there's always dbisql and SELECT<g>. (Don't you just hate that, when software gives you the answer some stinking programmer thinks you SHOULD have asked, instead of the question you are really asking? ![]() Breck Is Clearly NOT A Salesperson PS the part of Foxhound that shows bytes per row for all your tables will always be free, since that part of Foxhound will continue to work after the evaluation period is over. Just the monitor part will stop working (and by implication, the alerts function). PPS Foxhound also has a cool list, ranks "biggest tables" using both row count and space usage... shows you all your Tables From Hell at a glance. Foxhound is the consultant's friend ![]() -- Breck Carter - Blog: http://sqlanywhere.blogspot.com/ SQLA questions and answers: http://sqla.stackexchange.com RisingRoad helps SQL Anywhere developers make better databases http://www.risingroad.com/ Breck.Carter at gmail |
![]() |
| Thread Tools | |
| Display Modes | |
| |