OnDemand User Group

Support Forums => MP Server => Topic started by: jsquizz on February 23, 2021, 05:20:23 PM

Title: Any easy/fancy ways to gather all loads in one year time frame?
Post by: jsquizz on February 23, 2021, 05:20:23 PM
Business folks are asking for a count of all documents loaded in 2020 for a specific folder. Usually not a big deal, only 6 AG's in that folder..

How I've done it in the past is use the system load / system log folder, and put it into excel..and some simple parsing. But these are large application groups, some have 100k+ loads per month. I've learned obviously that the CMOD client doesn't like copying out more than 30-40k at a time.

My Idea? -- I'm thinking possibly also of just hitting up the SA* tables, of which we have two of. Anyone have any more ingenious ways of doing this?
Title: Re: Any easy/fancy ways to gather all loads in one year time frame?
Post by: Justin Derrick on February 23, 2021, 06:24:06 PM
The CMOD System Load (SA*) tables should be your first stop.  There's no AppGroup field in the OnDemand System Log without doing a full-text search, which is terrible for performance.  A few tweaks of SQL should help you get what you need.

Also, loading 100k files per month is terrible.  Load larger files less frequently to reduce the overhead in CMOD.  :)

-JD.
Title: Re: Any easy/fancy ways to gather all loads in one year time frame?
Post by: jsquizz on February 23, 2021, 09:16:12 PM
The CMOD System Load (SA*) tables should be your first stop.  There's no AppGroup field in the OnDemand System Log without doing a full-text search, which is terrible for performance.  A few tweaks of SQL should help you get what you need.

Also, loading 100k files per month is terrible.  Load larger files less frequently to reduce the overhead in CMOD.  :)

-JD.

Yep, i tinkered with the SA* tables tonight for a few minutes after I posted this and got my results.

I agree with you about the loads. There’s literally a month worth of files. Tens of thousand. With one single document per file.
Title: Re: Any easy/fancy ways to gather all loads in one year time frame?
Post by: Justin Derrick on February 25, 2021, 07:52:01 AM
Yup, the overhead for this is tragic.  Probably more overhead in OnDemand's internal database tables than actual index data.

-JD.