feat: (db) add index for desc for pagination

This commit is contained in:
Mohamed Sohail 2022-06-16 12:24:52 +03:00
parent 32f744ce24
commit c7c48995aa
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
CREATE UNIQUE INDEX index_id ON transactions USING btree (ID DESC);
---- create above / drop below ----
DROP INDEX index_id;