Create Billing Table Indexes - Dashboard Installer

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000109084

The Install New Updates module on the admin dashboard lists one-time platform installers that still have pending steps on the site. Clicking the green Check For Updates button refreshes the list — an installer only appears when the site actually has something left to install, and it disappears from the list once its steps are complete.

What Create Billing Table Indexes Does

This installer adds database indexes to the site's billing database so that billing activity lookups run faster. It changes how the data is indexed for searching; it does not add, remove, or rewrite any of the site's billing records.

It works on a single table in the billing database, the tblactivitylog table (the billing activity log), and checks three columns on it:

  • date: a standard index is added so activity can be filtered and sorted by date quickly.
  • userid: a standard index is added so activity for a specific member can be looked up quickly.
  • description: a FULLTEXT index is added, which is the index type built for searching text content, so descriptions can be searched efficiently.

The installer connects to the site's separate billing database (the _billing database) to do this. If the site does not have a billing database, the installer does nothing.

Why It Appears

The installer checks each of the three columns on tblactivitylog and appears whenever a column exists but does not yet have its index. In other words, it shows up when the billing activity log is missing one or more of the date, userid, or description indexes. If the billing database is not present, or all three indexes already exist, the installer does not appear.

This is a legacy condition. Billing databases created before these indexes became standard will see the installer offered, while newer sites already have the indexes in place. Seeing it does not mean anything is broken.

Why It Matters

Indexes let the database find rows without scanning the whole table. Adding them to the billing activity log makes date-based, member-based, and text searches against that log faster, which is a performance improvement rather than a change to what the log contains. Skipping the installer will not break billing, but billing activity lookups on a large log stay slower than they need to be.

How to Run It

  1. From the admin dashboard, find the Install New Updates module and click Check For Updates.
  2. If the site has pending steps, Create Billing Table Indexes appears in the list. Click Install.
  3. After it completes, click Check For Updates again. The entry disappears once all indexes are in place.

If Create Billing Table Indexes does not appear in the list, the website is already up to date, so there is nothing to do.

After Running

Nothing changes visibly on the website. The billing activity log keeps all of its existing records; only the way that table is indexed for searching changes. There is nothing to reconfigure afterward.

The installer re-checks each column before adding its index and only adds the indexes that are still missing, so it is safe to run even if part of the update was already applied earlier.