Tue Aug 9 21:31:32 PDT 2005
- Previous message: [Slony1-general] Replicating an existing large database
- Next message: [Slony1-general] Replicating an existing large database
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
--- Brad Nicholson <bnichols at ca.afilias.info> wrote: > Ujwal S. Setlur wrote: > > >Hello, > > > >I would like to set up slony1 (1.1.0) to replicate > an > >existing database that has one large table (~30 > >million rows) and several other smaller tables. > > > >I went throught the steps of setting up a fresh > slave > >and subscribing to the master. However, when I > started > >replication, access to tables (using select > statemtns) > >on the slave are locking up. I suspect it is due to > >the large amount of data being transferred. > > > >What is the best way to start replication of an > >existing large database? > > > >1. Currently all the tables are in one set. I can > try > >to move the large table into a different set, but I > >don't want to lock the application out of inserting > >new rows into the table on the master. > > > > > > > The subscribe will sub all the tables from one set > in one go. If the > other tables are small, there is likely to be > nothing gained from > putting them into another set. That is what I thought. > > BTW, you could do this without locking data writes > out of the master. > Use the slonik command 'set drop table' to drop the > big table from your > existing set, then create a new set containing the > big table. > Can you elaborate on that a little? The big table is a data table that gets written to quite frequently. Can I avoid locking data writes to that table on the master during subscription? Thanks, Ujwal
- Previous message: [Slony1-general] Replicating an existing large database
- Next message: [Slony1-general] Replicating an existing large database
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list