Odd table sizes

  • I have a table, I'll call it "X", in a database which is replicated to another server via Merge replication. On the Publisher the space information for the table looks like this:

    namerowsreserved data index_sizeunused

    X1296 772848 KB772232 KB136 KB 480 KB

    The replicated table on the subsciber looks like this:

    namerowsreserved data index_sizeunused

    X1176 488 KB 216 KB 112 KB 160 KB

    Notice that the subscriber table is much smaller and in line with what we would expect for this table. Can anyone offer an explanation why one would be so much bigger than the other? I've run DBCC UPDATEUSAGE on both sides to make sure that the information is accurate.

  • the other way to confirm the number of rows in 2 tables select Count(*) from table and is same number of rows in both tables ?

    [font="Tahoma"]
    --SQLFRNDZ[/url]
    [/font]

  • I verified the row counts using COUNT(*) and they match, as I would expect. However, the publisher has a much larger data size.

  • Mick Opalak (1/7/2013)


    I verified the row counts using COUNT(*) and they match, as I would expect. However, the publisher has a much larger data size.

    Is there a clustered index or is this a heap? Heaps do have an issue of not releasing space from delete records http://support.microsoft.com/kb/913399. Its a known "Issue" with heaps and why i tend to use a clustered index on every table.


    For faster help in answering any problems Please read How to post data/code on a forum to get the best help - Jeff Moden[/url] for the best way to ask your question.

    For performance Issues see how we like them posted here: How to Post Performance Problems - Gail Shaw[/url]

    Need to Split some strings? Jeff Moden's DelimitedSplit8K[/url]
    Jeff Moden's Cross tab and Pivots Part 1[/url]
    Jeff Moden's Cross tab and Pivots Part 2[/url]

  • That was it. This table is a heap.

    Thanks for the help.

  • Mick Opalak (1/8/2013)


    That was it. This table is a heap.

    Thanks for the help.

    Did you add a clustered index or resolve it in some way or do you now need to take a look at how to resolve it?


    For faster help in answering any problems Please read How to post data/code on a forum to get the best help - Jeff Moden[/url] for the best way to ask your question.

    For performance Issues see how we like them posted here: How to Post Performance Problems - Gail Shaw[/url]

    Need to Split some strings? Jeff Moden's DelimitedSplit8K[/url]
    Jeff Moden's Cross tab and Pivots Part 1[/url]
    Jeff Moden's Cross tab and Pivots Part 2[/url]

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply