Add index to message table to speed up count querying
This commit is contained in:
parent
3b72fa720b
commit
5fc654b758
@ -74,6 +74,8 @@ ON switch_members USING btree (
|
|||||||
switch ASC NULLS LAST
|
switch ASC NULLS LAST
|
||||||
) INCLUDE (member);
|
) INCLUDE (member);
|
||||||
|
|
||||||
|
create index if not exists idx_message_member on messages (member);
|
||||||
|
|
||||||
create table if not exists webhooks
|
create table if not exists webhooks
|
||||||
(
|
(
|
||||||
channel bigint primary key,
|
channel bigint primary key,
|
||||||
|
Loading…
Reference in New Issue
Block a user