Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set id as the PRIMARY KEY of AttachmentsIndex for Pg
This is consistent with mysql's fulltext table. As id is the primary key, DB automatically indexes the column which helps performance especially for the following SQL that is called quite frequently when indexing data: SELECT MAX(id) FROM AttachmentsIndex
- Loading branch information