Maintenance
in package
Database maintenance and optimization utilities.
Provides methods for optimizing database tables, adjusting auto-increment values, and initializing word counts.
Tags
Table of Contents
Methods
- adjustAutoIncrement() : void
- Adjust the auto-incrementation in the database.
- initWordCount() : void
- Initiate the number of words in terms for all languages.
- optimizeDatabase() : void
- Optimize the database.
- updateJapaneseWordCount() : void
- Update the word count for Japanese language (using MeCab only).
Methods
adjustAutoIncrement()
Adjust the auto-incrementation in the database.
public
static adjustAutoIncrement(string $table, string $key) : void
Parameters
- $table : string
-
Table name (without prefix)
- $key : string
-
Primary key column name
initWordCount()
Initiate the number of words in terms for all languages.
public
static initWordCount() : void
Only terms with a word count set to 0 are changed.
optimizeDatabase()
Optimize the database.
public
static optimizeDatabase() : void
updateJapaneseWordCount()
Update the word count for Japanese language (using MeCab only).
public
static updateJapaneseWordCount(int $japid) : void
Parameters
- $japid : int
-
Japanese language ID