PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > Cleanup, Optimization, Removing Indices in replication slaves
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Cleanup, Optimization, Removing Indices in replication slaves

Réponse
 
LinkBack Outils de la discussion
Vieux 04/02/2008, 22h37   #1
Marc
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Cleanup, Optimization, Removing Indices in replication slaves

Hi,

This seems to me a somewhat fundamental question that could be
immensely ful in understanding basic master slave replication:

If I delete a secondary index on a table on a slave db, should I
expect that replication will continue to work as normal? If I stop
replication, do a table optimization, then restart replication, would
I encounter any problems?

The understanding I'm coming to is that replication works by simply
playing back modifying queries recorded at the master on the slave, in
sequence. Such inserts/updates would be independent of secondary
indices, right?

Re cleanup: Let's say I have a bunch of old sessions, etc. that I
want to clean up - can I do this on the slave, assuming that the
application layer will either never query for these or that it will
simply create a new session?

If I could do this, seems reasonable that I could prepare a slave, get
it caught up, stop slave, do all kinds of aggressive maintenance,
start slave, get it caught up, then switch master and slave.

What about removing a completely unused all-null column? I'm guessing
that's where I could start to get into trouble...

Thanks in advance,


Marc
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h03.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08786 seconds with 9 queries