misterperl has asked for the wisdom of the Perl Monks concerning the following question:
A smaller set of files would be much easier to manage in the active dir. Especially for newbies.
I'm thinking of an SQL table with one row per file access, and the access type like edited the file, ran the file, "required" or "used" the file, chmodded, etc. Maybe once a day, code could run that reads access info for each file, and moves them to or from the active code directory depending on when they were last used. Or maybe based on frequency of use, rather than last use.
So I'm wondering are there CPAN modules to assist with this? I can have the repository as part of @INC, and as files are used, a mysql row is added. Starting with 100% in the repository, after weeks of running, source files we need would be in active. The rest would be inactive and maybe even after a long term, removed. And since it sounds like this table has a potential to get large, we might have to cull old rows. A thousand files invoked a thousand times a month could be a BIG table!
I'm thinking modules that I could add to the top of every sourcefile, that signals a write to the access table. And maybe modules that help me tell what classes (pms) are actually invoked or resourced, rather than just "used" , with no real use. Or, a CPAN module that can generate an array of all use or required files in the hierarchy under the initial pl or cgi.
I'm pretty sure I can write all the functionality from scratch, but if CPAN modules exist that facilitate this function, I'm all-in. I guess in-summary I want like a meta library that tells me a bunch of things about what is running, what it's using, where it came from, maybe how many milliseconds it ran, what user ran it, etc etc.. I see potential concurrency issues with a running program that has one of it's "pm's" moved mid-run; not sure how to deal with that since we operate 24x7. And other concerns. I'm still in the dreaming stage..
Best Regards Monks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Are there CPAN modules that can help write realtime software catalogs
by Corion (Patriarch) on Jun 06, 2023 at 20:58 UTC | |
Re: Are there CPAN modules that can help write realtime software catalogs
by stevieb (Canon) on Jun 07, 2023 at 05:29 UTC | |
by bliako (Monsignor) on Jun 07, 2023 at 09:26 UTC | |
Re: Are there CPAN modules that can help write realtime software catalogs
by cavac (Parson) on Jun 13, 2023 at 08:32 UTC | |
Re: Are there CPAN modules that can help write realtime software catalogs
by Anonymous Monk on Jun 07, 2023 at 21:03 UTC | |
Re: Are there CPAN modules that can help write realtime software catalogs
by Anonymous Monk on Jun 09, 2023 at 05:45 UTC |