1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-08 17:56:52 +02:00

[ticket/11103] Update indexes on notifications/user notifications tables

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-12-08 14:12:25 -06:00
parent 2227ceab8b
commit 0d6c8f46ff
9 changed files with 18 additions and 88 deletions

View File

@@ -774,25 +774,10 @@ ALTER TABLE [phpbb_notifications] WITH NOCHECK ADD
) ON [PRIMARY]
GO
CREATE INDEX [item_type] ON [phpbb_notifications]([item_type]) ON [PRIMARY]
CREATE INDEX [item_ident] ON [phpbb_notifications]([item_type], [item_id]) ON [PRIMARY]
GO
CREATE INDEX [item_id] ON [phpbb_notifications]([item_id]) ON [PRIMARY]
GO
CREATE INDEX [item_pid] ON [phpbb_notifications]([item_parent_id]) ON [PRIMARY]
GO
CREATE INDEX [user_id] ON [phpbb_notifications]([user_id]) ON [PRIMARY]
GO
CREATE INDEX [time] ON [phpbb_notifications]([time]) ON [PRIMARY]
GO
CREATE INDEX [unread] ON [phpbb_notifications]([unread]) ON [PRIMARY]
GO
CREATE INDEX [is_enabled] ON [phpbb_notifications]([is_enabled]) ON [PRIMARY]
CREATE INDEX [user] ON [phpbb_notifications]([user_id], [unread]) ON [PRIMARY]
GO