Skip to content

Commit

Permalink
Add index for post date in DESC order
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Apr 18, 2024
1 parent 0123ce3 commit 6a6dd77
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
Binary file added shared/src/commonMain/sqldelight/databases/18.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ CREATE TABLE post(
);

CREATE INDEX post_source_id_index ON post(sourceId);
CREATE INDEX post_date_desc_index ON post (date DESC);

upsert:
INSERT INTO post(id, sourceId, title, description, rawContent, imageUrl, date, link, commentsLink)
Expand Down
1 change: 1 addition & 0 deletions shared/src/commonMain/sqldelight/migrations/17.sqm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE INDEX post_date_desc_index ON post (date DESC);

0 comments on commit 6a6dd77

Please sign in to comment.