SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Odd table sizes


Odd table sizes

Author
Message
Mick Opalak
Mick Opalak
Old Hand
Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)

Group: General Forum Members
Points: 303 Visits: 334
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:
name rows reserved data index_size unused
X 1296 772848 KB 772232 KB 136 KB 480 KB

The replicated table on the subsciber looks like this:
name rows reserved data index_size unused
X 1176 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.
@SQLFRNDZ
@SQLFRNDZ
SSCrazy
SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)

Group: General Forum Members
Points: 2269 Visits: 1222
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 ?


--SQLFRNDZ

Mick Opalak
Mick Opalak
Old Hand
Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)

Group: General Forum Members
Points: 303 Visits: 334
I verified the row counts using COUNT(*) and they match, as I would expect. However, the publisher has a much larger data size.
CapnHector
CapnHector
Hall of Fame
Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)

Group: General Forum Members
Points: 3437 Visits: 1789
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 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

Need to Split some strings? Jeff Moden's DelimitedSplit8K
Jeff Moden's Cross tab and Pivots Part 1
Jeff Moden's Cross tab and Pivots Part 2
Mick Opalak
Mick Opalak
Old Hand
Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)

Group: General Forum Members
Points: 303 Visits: 334
That was it. This table is a heap.

Thanks for the help.
CapnHector
CapnHector
Hall of Fame
Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)

Group: General Forum Members
Points: 3437 Visits: 1789
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 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

Need to Split some strings? Jeff Moden's DelimitedSplit8K
Jeff Moden's Cross tab and Pivots Part 1
Jeff Moden's Cross tab and Pivots Part 2
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search