kshitijk4poor
f15c19c25f
refactor(state): one preview-column builder, pinned at every session listing ( #119403 )
...
Review of the previous commit found a fourth copy of the preview
subquery, in list_recent_sessions_bounded (session_search's recent
browse, correlated on tip.id). It still had a bare FROM messages m, so it
kept the stale-stats plan. The three copies the previous commit patched
differed from _PREVIEW_RAW_SUBQUERY_SQL only in whitespace, and no test
pins their SQL text.
_sql_preview_raw(session_id_expr) now builds the column for the sidebar,
the bounded recent browse, the telegram unlinked listing and the export
select, so the INDEXED BY lives in one place. The regression test now
covers the sidebar, session_search and telegram readers. It asserts that
both the preview (m) and last-active (_act_m) searches run, and that each
one goes only through idx_messages_session. All three cases fail on
origin/main and when the hint is dropped from the helper.
2026-10-02 02:34:41 +05:30
..
2026-09-19 10:08:14 -07:00
2026-09-28 21:03:09 -04:00
2026-09-21 19:18:15 -04:00
2026-09-21 02:56:31 -07:00
2026-09-15 05:41:36 -07:00
2026-09-23 03:15:26 -07:00
2026-09-20 10:32:40 -07:00
2026-09-20 10:09:12 -07:00
2026-09-19 00:59:32 +05:30
2026-09-18 10:39:13 -07:00
2026-09-25 10:46:54 -05:00
2026-09-23 03:15:26 -07:00
2026-09-20 00:14:10 -07:00
2026-09-23 15:26:34 -04:00
2026-09-27 20:49:04 +05:30
2026-09-18 19:06:52 -04:00
2026-09-23 07:02:44 -04:00
2026-09-28 20:17:37 -05:00
2026-09-27 03:03:46 -05:00
2026-09-21 06:09:56 -04:00
2026-09-23 16:59:09 -07:00
2026-09-18 10:38:41 -07:00
2026-09-23 03:15:26 -07:00
2026-09-18 17:26:10 -04:00
2026-09-18 10:38:41 -07:00
2026-09-29 04:15:21 +05:30
2026-09-23 07:02:44 -04:00
2026-09-23 03:15:26 -07:00
2026-09-15 12:33:45 -05:00
2026-09-23 03:15:26 -07:00
2026-09-23 03:15:26 -07:00
2026-09-23 07:02:44 -04:00
2026-09-23 10:34:54 -07:00
2026-09-23 07:02:44 -04:00
2026-09-29 15:58:55 +05:30
2026-09-23 03:15:26 -07:00
2026-09-23 07:02:44 -04:00
2026-09-23 07:02:44 -04:00
2026-09-23 07:02:44 -04:00
2026-09-21 20:29:18 -04:00
2026-09-29 04:15:21 +05:30
2026-09-15 04:12:13 -07:00
2026-09-23 03:15:26 -07:00
2026-09-28 04:34:30 -07:00
2026-09-24 06:27:07 -05:00
2026-09-27 00:43:39 +05:30
2026-09-18 09:53:41 -07:00
2026-09-23 22:22:32 +05:30
2026-09-18 09:53:41 -07:00
2026-09-26 22:52:51 -05:00
2026-09-23 03:15:26 -07:00
2026-09-20 16:47:29 +05:30
2026-09-21 19:18:15 -04:00
2026-09-20 12:12:26 -07:00
2026-09-23 07:02:44 -04:00
2026-09-15 04:01:17 -07:00
2026-09-26 22:27:13 +05:30
2026-09-20 12:15:51 -07:00
2026-09-20 10:40:48 -07:00
2026-09-23 03:15:26 -07:00
2026-09-20 11:40:16 -07:00
2026-09-23 03:15:26 -07:00
2026-09-28 20:17:37 -05:00
2026-09-15 03:51:07 -07:00
2026-10-02 02:34:41 +05:30
2026-09-29 02:47:39 +05:30
2026-09-26 20:40:40 -05:00
2026-09-23 03:15:26 -07:00
2026-09-23 07:02:44 -04:00
2026-09-15 04:19:19 -07:00
2026-09-23 07:02:44 -04:00
2026-10-01 05:25:47 -05:00
2026-09-28 02:26:21 -07:00
2026-09-24 08:51:52 -04:00
2026-09-24 08:51:52 -04:00
2026-09-21 19:18:15 -04:00
2026-09-23 07:02:44 -04:00
2026-09-19 04:49:23 -04:00
2026-09-18 19:06:52 -04:00
2026-09-23 07:02:44 -04:00
2026-09-23 08:20:01 -04:00
2026-09-23 08:20:01 -04:00
2026-09-23 03:15:26 -07:00
2026-09-23 10:17:46 -04:00
2026-09-18 10:30:20 -07:00
2026-09-23 15:26:34 -04:00
2026-09-19 03:14:20 +05:30
2026-10-02 01:04:12 +05:30
2026-09-23 10:34:54 -07:00
2026-09-26 11:32:10 -07:00
2026-09-18 19:06:52 -04:00
2026-09-28 02:26:21 -07:00
2026-09-23 11:35:07 -07:00
2026-09-23 03:15:26 -07:00