Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Creating Index on the subcription database tables


Creating Index on the subcription database tables

Author
Message
rembersu-432095
rembersu-432095
SSC Rookie
SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)

Group: General Forum Members
Points: 44 Visits: 408
Hi All, We have Transaction Replication pull subscription setup between our production server and our reporting database. The indexes on the Publication table are not copied to the subscription tables. only the index from the primary key is create on the subscriber tables. we have performance issues in the subscription database since there are no indexes. can i create indexes on the subscription database to improve the performance of some of the stored procedure in the subscription database. will it break the Transaction Replication. Also can you please let me know if there is away that I can copy the indexes also from the publication database.

Thanks in Advance. Rembersu
happycat59
happycat59
Hall of Fame
Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)

Group: General Forum Members
Points: 3780 Visits: 3164
When you create the articles in the publication, you can choose from a number of options which control how your tables and indexes are created on the subscribers. One of those options is whether indexes are created. When using Management Studio, these options are shown when you click on the "Article Properties" button.

You may create any indexes you need on the subscriber. It is common for databases that are intended for reporting purposes to have different indexes to the publisher. Provided you don't create an index that conflicts with the publisher (e.g. a unique constraint that doesn't exist on the published), you can can create pretty mush any index you like.



free_mascot
free_mascot
Hall of Fame
Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)

Group: General Forum Members
Points: 3063 Visits: 2235
What will happen when we run Rebuild Indexes on Primary Database will it replicate it to Subscriber? or we need extra maintenance plan for Subscriber Database?

---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
rembersu-432095
rembersu-432095
SSC Rookie
SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)

Group: General Forum Members
Points: 44 Visits: 408
Thank you, Will there be any performance issue for the Transaction Replication since i have indexes created on the Subscriber tables Please advise.

Thanks in Advance
Rembersu
happycat59
happycat59
Hall of Fame
Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)

Group: General Forum Members
Points: 3780 Visits: 3164
Database maintenance activities are not replicated. If/when you need to rebuild indexes, you must do this on both databases.

As for the performance impact of having indexes on your replica, the short answer is "Yes, any index will have impact on the performance of INSERTs, UPDATEs and DELETEs". The real question is whether the impact on those commands is significantly less than the performance benefit you gain for other queries by having those indexes in place. You may need to test/quantify the impact each index has on your system.



rembersu-432095
rembersu-432095
SSC Rookie
SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)SSC Rookie (44 reputation)

Group: General Forum Members
Points: 44 Visits: 408
Thank you ,

Regards,
Rembersu
free_mascot
free_mascot
Hall of Fame
Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)

Group: General Forum Members
Points: 3063 Visits: 2235
Thank you, happycat59 for Clarification Smile

---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
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