A
Alejandro
I have some people using an app that has a front end that links to another
database that holds all the tables. Recently they called me because the app
wasn't working and after some digging I found out that the problem was that
the back end needed being repaired and compacted. Now, to avoid these calls
AND me compacting that database manually every other day I was thinking on
somehow triggering the compact and repair function automatically.
One thought was to save some code in the back end database that compacts and
repairs it at, say, 1:00 am, when nobody is using it. The problem there is
that if the database is not open I don't think the code can be triggered.
Another thought was to trigger the compacting action when the last person
using the front end closes the application, so in other words the back end
would be compacted and repaired every time the last person using the front
end closes the app.
The thing is, I have no idea if these are even plausible options, and if
they are, how to implement them. I would appreciate any tips on how to do
this even if it is by using a method other than the ones I mentioned above.
Anything that repairs the back end every so often without me having to do it
manually would be just fine.
Thanks!
database that holds all the tables. Recently they called me because the app
wasn't working and after some digging I found out that the problem was that
the back end needed being repaired and compacted. Now, to avoid these calls
AND me compacting that database manually every other day I was thinking on
somehow triggering the compact and repair function automatically.
One thought was to save some code in the back end database that compacts and
repairs it at, say, 1:00 am, when nobody is using it. The problem there is
that if the database is not open I don't think the code can be triggered.
Another thought was to trigger the compacting action when the last person
using the front end closes the application, so in other words the back end
would be compacted and repaired every time the last person using the front
end closes the app.
The thing is, I have no idea if these are even plausible options, and if
they are, how to implement them. I would appreciate any tips on how to do
this even if it is by using a method other than the ones I mentioned above.
Anything that repairs the back end every so often without me having to do it
manually would be just fine.
Thanks!