X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id C3F4FB430CB for ; Wed, 9 Jul 2003 21:14:51 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 74050-07 for ; Wed, 9 Jul 2003 18:14:19 -0300 (ADT) Received: from dbdevel.sunwave.net (h64-141-16-15.sunwave.net [64.141.16.15]) by svr1.postgresql.org (Postfix) with ESMTP id D26B5B42001 for ; Wed, 9 Jul 2003 18:14:18 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by dbdevel.sunwave.net (Postfix) with ESMTP id 25224178008 for ; Wed, 9 Jul 2003 17:14:20 -0400 (EDT) From: Michael A Nachbaur To: pgsql-sql@postgresql.org Subject: Home-brewed table syncronization Date: Wed, 9 Jul 2003 14:14:19 -0700 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307091414.19959.mike@nachbaur.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/108 X-Sequence-Number: 14222 Hello everyone, While I still have plans to do some more work on RServ, it is apparent to me that I need a more immediate solution. I'm not replicating my entire dataset, but rather just some "summary" tables that are maintained by stored procedures. This means RServ is an iffy proposition at best for me right now. So, I'm looking at syncronizing 4 tables from one master database to several child databases. I'm thinking of doing the following with DBD::Multiplex: DELETE FROM TableA; INSERT INTO TableA (..) VALUES (...); .... on all the child databases, but I'm not sure what kind of impact this would have on my servers. My impression is that this would hammer the indexes, and might blow any memory optimization out the window. Only a few records in my dataset will change from time-to-time, but just the process of determining what is different may take more effort than simply rebuilding. What are your thoughts? These tables will probably only have a maximum of 10,000 rows in total, but I'm going to have to syncronize once per minute; as a result, I wouldn't like this to take any longer than about 10 seconds. -- /* Michael A. Nachbaur * http://nachbaur.com/pgpkey.asc */ "Out," he said. People who can supply that amount of firepower don't need to supply verbs as well.