Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Opening & Closing of Databases via web interface

Featured Replies

Hello everyone,

I'm building a real-time signin program in a web interface, but I don't need all of the corresponding databases open all of the time until I need them to conserve memory. I know that the easiest solution is to keep all of the databases (there are 8 of them) open all the time, but my question is: has anyone out there actually been successful in opening and closing of databases via scripts run on a web interface?? I don't want any solutions if you have because the suspense is killing me if someone just gave me the answers. I just want to know if anyone has actually done it, so I know it is possible. Thanks in advance!

No problem, that will work, since is just single step script.

But you can leave all db open smile.gif" border="0

Yes it can be done, but it's a stupid thing to do. A couple of open databases takes up bugger-all memory, while having to open and close them will be a royal pain in the arse.

Right. But when I didn't have direct console access to our server, it was the only way for me to update Unlimited databases with new versions.

I was FTPing new version to the server.

Then I called the script for stopping the older running database.

Then I renamed the old db.

Renamed new db for normal name.

Started db via script.

That was fast, up to a minute of downtime. And pretty secure, because it was "secret" URL with password protection.

I agree Anatoli -- I've done exactly the same thing with FMP4. But to have databases closed and open them with scripts when necessary in an attempt to save a few kB of memory?

  • Author

quote:

Originally posted by Vaughan:

Yes it can be done, but it's a stupid thing to do. A couple of open databases takes up bugger-all memory, while having to open and close them will be a royal pain in the arse.

I agree about the pains of opening and closing databases, but I didn't need all 8 of them at one time open...just when I needed them. Luckily, the server I'm putting them on (Dual Pentium III 132 MB RAM) can take the strain, but the computer that I'm developing them on (Pentium 233MMX 64MB RAM) is really gritting it's teeth to run the scripts as a simulated server. Thank you for the reply!

I have 200MHz MMX Pentium-I NT4 64MB as developing and maintaining PC in one company I do all stuff for them smile.gif" border="0 I am still not complaining, because the pay is good.

I do open all 30 db and have not a problem.

There is no or very little reduction in server load by closing a couple of databases. FM Server can handle 250 open files at a time! FM Pro is limited to 50, but that's still a lot of files. Closing one or two (or eight) sin;t going to make much difference. The hassle of opening databases when needed far outweighs any possible advantages.

Another thought: the databases should all have passwords protecting them if they are multi-user. Unless the databases have the same password as the file with the opener script, FMP will wait with the password dialog before proceeding with the open.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.