mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(db): add an index for SSHPubKeys.PubKey (#2)
Speeds up SSHPubKeys.PubKey searches in a larger database.
Fixed form of the original commit which was reverted,
1a7f6e1fa9
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
5abd5db313
commit
6c7e274968
3 changed files with 60 additions and 0 deletions
|
@ -87,6 +87,8 @@ SSHPubKeys = Table(
|
|||
Column('UserID', ForeignKey('Users.ID', ondelete='CASCADE'), nullable=False),
|
||||
Column('Fingerprint', String(44), primary_key=True),
|
||||
Column('PubKey', String(4096), nullable=False),
|
||||
Index('SSHPubKeysUserID', 'UserID'),
|
||||
Index('SSHPubKeysPubKey', 'PubKey'),
|
||||
mysql_engine='InnoDB', mysql_charset='utf8mb4', mysql_collate='utf8mb4_bin',
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue