From 6a6dd77e57055aa71234849a7920aa09f12abaa8 Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Thu, 18 Apr 2024 11:16:48 +0530 Subject: [PATCH] Add index for post date in DESC order --- .../src/commonMain/sqldelight/databases/18.db | Bin 0 -> 106496 bytes .../dev/sasikanth/rss/reader/database/Post.sq | 1 + .../commonMain/sqldelight/migrations/17.sqm | 1 + 3 files changed, 2 insertions(+) create mode 100644 shared/src/commonMain/sqldelight/databases/18.db create mode 100644 shared/src/commonMain/sqldelight/migrations/17.sqm diff --git a/shared/src/commonMain/sqldelight/databases/18.db b/shared/src/commonMain/sqldelight/databases/18.db new file mode 100644 index 0000000000000000000000000000000000000000..043a20b431c1affde0e640e267868cf130e444a2 GIT binary patch literal 106496 zcmeI5&u<&Y6~{^aASp_+{EKE{Rna5?Vi9I+t44ZpjFhHU3S*jdNy#$1nn`0{sTeI0dnX+(B4}hD01ngK!6;3X@LR(lFpmi;m&eNiA{2${S{1U zcjnETH=p-ocXn;L{F}V(SnO`Q(=;7+F?2K(4u^itSSS=a$v>z0M}57-52n-!{~6Yf zhaH{_oqOx~;_4V0#ka%2-WpXT8Ny4s`suBTbcY+7m7uv^QDecUIi zPzv!CsUhQ}9yb@Fix(5Ir%QSk)!Hq`YB|;2ox15*!*a(j)#tc%=GabyhgRL{);ji% zW4BvrW;e|(YqQhf&0KMsbu6>4l8Yb|gzxUO+uKdEvu*KAy3AH3yEtP3|0_Y^d@-Nv z{oveg$3Sb`KEH8lfUvXHZZzQo7}M)Tg+6%lxvE zKZ_YzMvB$dTAiKMTpUnG>DG;Mp27y7@d2@xiy-sJ7;tAxOL*vL=CP> zWuHhV8mlZ7nr#c=~ z-6y3~uPC0W{TtC}a(OxY_>p7YX;_3^6x`lH%vD;+T*(_Ev}8f%KI8Wd72{Tg6^i_` zna{K9rQEel={CD++)nd;x)S>(sFgJ5>fK;RjR%Nh)iVxV_YJz?QHp7ptn9;j)#X7A zji**)k)*L44hdr2`wf1NTQz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C8!X009sH0T2Lz=Z*mO z|IeMvv0xAY0T2KI5C8!X009sH0T2Lz=a2w?|KD@ybSxPJKmY_l00ck)1V8`;KmY_l M;JF~6|Ng)K0WgN}*Z=?k literal 0 HcmV?d00001 diff --git a/shared/src/commonMain/sqldelight/dev/sasikanth/rss/reader/database/Post.sq b/shared/src/commonMain/sqldelight/dev/sasikanth/rss/reader/database/Post.sq index 92edc4c84..ef32f58ad 100644 --- a/shared/src/commonMain/sqldelight/dev/sasikanth/rss/reader/database/Post.sq +++ b/shared/src/commonMain/sqldelight/dev/sasikanth/rss/reader/database/Post.sq @@ -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) diff --git a/shared/src/commonMain/sqldelight/migrations/17.sqm b/shared/src/commonMain/sqldelight/migrations/17.sqm new file mode 100644 index 000000000..902910430 --- /dev/null +++ b/shared/src/commonMain/sqldelight/migrations/17.sqm @@ -0,0 +1 @@ +CREATE INDEX post_date_desc_index ON post (date DESC);