Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

REBUILD-INDEX

Description 

The REBIULD-INDEX command will rebuild indexes on a jBase file.

rebuild-index -Options filename { {indexname {indexname ...}} | *}

Where Options can be:


Option
Description
-a
Rebuilds ALL indexes in the file
-r Rebuild ALL files in the directory specified
-v Verbose mode, one period display for every 1000 records rebuilt


This command will rebuild the index definitions. It can be used in the following circumstances:

  • Following the corruption of the index file
  • Following a file restore using jrestore . This is detailed later.
  • Following the creation of an index using create-index.

By default create-index will build the index and will not require a rebuild-index command to be performed.

Option -a means you want to rebuild all the indexes defined for the file. This can also be achieved by specifying * as the index name. Otherwise you must specify on the command line one or more index names to rebuild.

Option -r will rebuild all files in the directory name specified. This is a useful operation after using, for example, jrestore to restore your database and then you can use the option -r to rebuild all files in a certain directory.

 

Was this article helpful?