data replication

Post Reply
MiniMe
Posts: 210
Joined: Thu Mar 15, 2001 4:30 pm

data replication

Post by MiniMe »

I need to be able to keep Texis Databases sync'd between two servers.. What is the best method to do this.. My database has 15 million rows and is about 9 gigabytes.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

data replication

Post by John »

There are a couple of different approaches you can take depending on your application architecture. You could either create triggers that will copy the data that is being changed into temporary tables to by synchronized with the other server(s), or you could have the application explicitly update both servers at the same time.
John Turnbull
Thunderstone Software
parker0
Posts: 1
Joined: Thu May 15, 2003 9:40 am

data replication

Post by parker0 »

John, could you explain how to "have the application explicitly update both servers at the same time?" Is this a function of webinator?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

data replication

Post by mark »

One way...
Where you do
<sql "insert ... values(counter,$Url,$Text)">
you would also do
<strfmt "id=%U&Url=%U&Text=%U" $id $Url $Text>
<submit url=http://othermachine/texis/replicator.txt method=POST data=$ret content-type="application/x-www-form-urlencoded">
Similarly for updates and deletes.

Replication is not built into Webinator.
Post Reply