I'm using Berkeley DB XML 2.5.16 with Berkeley DB 4.8.30.Tom,
We recently added a new replicated persistent document type to our application and I'd like to understand if there is any performance advantage associated with the way we model the elements and sub-elements contained in a replicated persistent document.
Our application currently handles sub-element modifications by updating the top-level element associated with the sub-element. So my question is, if a top-level element is updated, how granular are the changes that get replicated to the replica sites in the replication group as a result of the update? In other words, if I retrieve a top-level element from the database, modify one of its sub-elements and then execute an update on the top-level element; does the entire top-level element get replicated to the replica sites or just the change(s) to the modified sub-element? If the entire top-level element gets sent, then it seems like it would be more efficient for us to model the sub-elements as top-level elements that contain a foreign key to their parent top-level element rather than modeling them as actual sub-elements. Would this improve the replication performance given the fact that our application treats a modification to a sub-element as an update to its top-level parent?