Replicate design only

I’ve read all the posts regarding the design-only replication, but our situacion is quite different.

Here’s the situatuation:

We have two servers on two seperated locations. Let’s call them server srvA on locatin locA and srvB on locB.

Users from locA have no access to the srvB(except by web sometimes).

Users from locB have passthru notes access to srvB but no web access.

We have a database (web application)and its replicas on both servers with srvA set as the administration server. We have developers that work on that databases on both locations which is fine, since the srvA takes care of the design element locking. However when some design elements are added or removed the replication is still needed and here lies the problem. The database contains a settings document wich is location reletad and therefore should not be replicated. It also contains some schedulded agents that updates most of the data that also shouldn’t be replicated(conflict hazard).

Summary:

  • Two locations

  • We need replicas since we develop on two locations

  • We need two servers since users from both locations cannot access both servers via web(web applications)

  • We need seperated data for both locations

How can I replicate only design but no data?

Subject: Replicate design only

Hi Jure,

That’s the reason we have templates.

You can develop on the templates, and replicate the templates by the end of the day.

Nightly there is a task on the server who updates databases from originating templates.

Next day, morning, when you look the database, you will be able to see new design.

Besides, IF I understand right, your databases on both servers should never be replicated, so they don’t need to be a replica.

Regards,

Daniel

Subject: Replicate design only

I think Daniel is right, if possible use a template and don’t replicate, because if data accidentally replicated you would have a mess. That being said if you had to replicate you could use the replication settings (advanced tab) and select ‘design elements’, de-select agents (right, didn’t you say that?) And then select to replicate ‘documents by selection formula’ and have your formula evaluate to none of the documents in any of the replicas.

Subject: RE: Replicate design only

Hi Sally,

Yes. you got the idea.

But don’t forget, if you have the same database on two different servers and you don’t want to replicate them, it’s a better idea to have two diffetenr databases based on the same template. when you change the template, the changes will appear in both databases immediately. One good example of that is the mail boxes, where all the users have the same template, but they will NEVER be able to replicate one user to other. I have one server with 1200 users, and if we could replicate all mail boxes between them…

Daniel

Subject: RE: Replicate design only

yes, but don’t forget, thet we develop on two locations concurently. That’s the main reason we use replicas.

Data really isn’t that important in this context but it’s still needed for testing purposes.

Subject: RE: Replicate design only

Hi Jure,

Again you have a database (contains documents and maybe design) called database.nsf.

You have a template (contains NO documents, contains design) called template.ntf

You develop over template.ntf. You have 1 developer, or 2 developers. One site, 2 sites. whatever you do, you develop over the template.ntf. Nightly the server will refresh design od database.nsf from template.ntf. Very simple. You can replicate this template.ntf, because that’s the information you want to propagate between servers. But you DO NOT replicate database.nsf, because they have different data, and you CAN’T replicate data from one to other.

Daniel

Subject: RE: Replicate design only

I get exactly what you mean.

The problem is, that i still need some data in the template.ntf database in order to test during the development. The database includes some pretty complex calculations that simply needs to be tested in the stage of development itself. In order to test those fancy calculations naturally i need some fancy data in the development template.

We tried that approach acctually(we refreshed the data manually, every time we needed to test something), but this didn’t work. Its just too much refreshing involved.

Perhaps you are good enough to develop withouth any data in the database but unfurtunatly I’m not. I just need the constant checking of what I’ve done.

Thanks anyway.

JJ

Subject: Did you try putting some data in the template?

An NTF File works almost exactly like an NSF file except for scheduled agents. Secondly, a .NSF file can be a master template.