Equinox Online Help - Language Reference - A to Z
FlushAllDatabases |
|
---|---|
Applies to | |
Syntax | FlushAllDatabases [HowExpression] |
Action | [Statement] Closes open files not currently in use. |
Scope | Usable anywhere. |
Notes | When a file is accessed in an application, Equinox also opens all associated files, even if they are not used immediately. To gain maximum performance, these files are kept open until the application is closed. You can override this by periodically closing all open files that aren't currently in use. This can speed up the time taken to recover following a server crash. However, if you close files that Equinox is going to use before the application is next closed, there will obviously be an overhead associated with re-opening those files. HowExpression is a new optional parameter that allows more control over the record cache:
|
Category | Databases |
See Also | ApplicationClosed, ChangeLinkage, ResetApplication |
Example | This example asks users if they want to close unused files. AlertButtons "No", "Yes" Alert "Do you want to close unused files?" If SysReply = 2 Then FlushAllDatabases |