Add index to message table to speed up count querying

This commit is contained in:
Ske 2019-12-21 21:42:34 +01:00
parent 3b72fa720b
commit 5fc654b758

View File

@ -74,6 +74,8 @@ ON switch_members USING btree (
switch ASC NULLS LAST
) INCLUDE (member);
create index if not exists idx_message_member on messages (member);
create table if not exists webhooks
(
channel bigint primary key,