Architecture question, Notes and DB2

Im working on a fairly large database. 6k docs, 1.5gigs.

Right now the main chunk that Im working on consists of this database and a handfull of notrix jobs that copy data from the domino DB to DB2.

Everytime a doc is saved or created its placed in a view that the Notrix jobs run on, on a nightly basis.

It works fine but the owner of the DB2 db/tables want the data to be moved over faster and more efficiently.

To give a better description of the situation:

Each notes doc in the db has 8 sections. each section has its own set of fields. Each section has a corresponding table over in DB2.

So there are 8 sections per doc, 8 Notix Jobs, and 8 db2 tables.

When a document is edited/created its placed in that view that the first Notrix job runs on. After the 1st job runs it kicks off the following 8 to update every table with the corresponding section info from the notes doc.

Thats fine for a new doc, but when someone changes one field in one section, its a waste of time to run every single Notrix job. But as of right now there isnt a choice.

Current usage of the DB isnt too bad. On average (on the high side) there are about 25 docs created every day and 100 modifications every day.

First suggestion was to use a querysave to use WebMethods to push the data directly from the Notes DB into DB2. That would let me select what which tables to update as I could do some sort of tracking to see what fields were edited.

Have two problems with that. I dont want to use a QS. This is an all Notes Client db. Since the user base is pretty broad there are always some people with really old PCs that have been abused way too much. Dont want someone getting impatient while the QS runs and kill notes or something. And I never had luck with Agents that are scheduled to run when docs modified.

Do I have any options in that respect?

The other problem with that is that data coming into the db isnt just users manually entering data. There are numerous other notrix jobs that pull information from other Notes databases and update docs in the main large database. So out of that 100 edits a day on average about 30 are updates from Notrix jobs. All of which usually fit into the “edited one field” category so running the Notrix jobs on just that group is still a waste.

Im looking for any input on this. I appologize if I didn’t describe my situation very well. I’m leaning towards using some webmethod’s agents as well as some Notrix jobs. I just have no idea how to coordinate them.

Subject: Agent?

I don’t know anything about WebMethods, but if you can call it from a querysave, why not call it from an “After documents are created or modified” agent. Have it run on the “Notrix view” (since that contains all docs that need to be included in the data transfer).

Subject: RE: Agent?

Sry webmethods is what we use to go in between platforms sometimes

http://www.wmusers.com/

Im not even sure why I said that… Because I dont need to go to a wM server this time… sry Im tired =(

I’d just have to write an agent to push the data from the doc to DB2 (lsx?).

But with agents that run after a doc has been modified or created, isnt there a lag before it starts? So if a doc is edited the agent doesnt run for some server set amount of time, say 5 min.

Thats ok if there is only one doc edited. But when I edit like 50 docs 1min one after the other, the agent will never run until the last of the 50 docs is edited.

Subject: architecture question, Notes and DB2

This doesn’t solve all of your issues, but one approach is to use a ‘PostSave’ agent to trigger a server agent using RunOnServer. That gets around the issues of the slow clients that you had with the QuerySave.

Subject: RE: architecture question, Notes and DB2

Is there a general guide somewhere for usage of the lotus db2 connector in terms of performance? Ive seen it used before and had to play with the sql statement. But never written it from scratch. Didn’t seem like there would be much to do. just open the connection, write that sql statement, execute it, then close it.

Subject: RE: architecture question, Notes and DB2

Anybody?

Subject: RE: architecture question, Notes and DB2

I hope you don’t mind terribly if I suggest you post this in the Enterprise Intergration forum – you’re more likely to run into someone who can give you a definitive answer.

Subject: RE: architecture question, Notes and DB2

Whoops :smiley: Didnt know there was that forum. I appologize for putting this in the wrong Forum. Thanks Stan.