Page MenuHomePhabricator

Drop unexpected/unneeded database tables in Phabricator
Closed, ResolvedPublic

Description

Steps to reproduce:

MariaDB [phabricator_file]> SELECT * FROM __dsns LIMIT 50;
+----+-----------+-----------------------------+
| id | parent_id | dsn                         |
+----+-----------+-----------------------------+
|  1 |      NULL | h=db1048.eqiad.wmnet,u=root |
|  2 |      NULL | h=db2012.codfw.wmnet,u=root |
+----+-----------+-----------------------------+
2 rows in set (0.001 sec)
  • See phabricator_search.phabricator_stopwords (50 entries) DB table listed which should not exist
    • It duplicates phabricator_search.stopwords (no table prefix) (45 entries) which is actually used by Phorge's Ferret engine
  • FYI these surplus tables do _not_ exist on the test instance

Upstream docs about surplus schemata: https://we.phorge.it/book/phorge/article/storage_adjust/#surplus-schemata

Event Timeline

Aklapper triaged this task as Low priority.
Aklapper added a subscriber: brennen.

@brennen: I assume you don't know or remember anything about this, just like me. :)

For the records, I remember when we were upgrading in T370266 that Phorge's upgrade command also listed these as a "Database Surplus".

Once you have been 100% we can drop it. Ping me and I do the needful.

Tyler had the idea that this could have been related to our ElasticSearch backend experiments, however grep'ing our codebase I get no results for phabricator_stopwords, only for the (default, upstream) stopwords table.

@brennen: I assume you don't know or remember anything about this, just like me. :)

Correct. Agree they look like they can probably go.

Thanks! @Ladsgroup: Please feel free to go ahead.

It has also been checked on the phab test instance and those tables did not exist there.

Awesome. I drop it first thing in the morning tomorrow.

Mentioned in SAL (#wikimedia-operations) [2025-10-01T11:25:10Z] <Amir1> dropping two unused tables in phabricator db (T403542)

Ladsgroup claimed this task.
Ladsgroup moved this task from Triage to Done on the DBA board.