Replaced the slow ILIKE '%query%' full-text search with PostgreSQL's native full-text search engine, backed by a GIN-indexed tsvector generated column. Added an Elasticsearch fallback for when ES is available, and a benchmark script to measure before/after performance at scale.#949
Open
DevScoopee wants to merge 1 commit into
Open
Replaced the slow ILIKE '%query%' full-text search with PostgreSQL's native full-text search engine, backed by a GIN-indexed tsvector generated column. Added an Elasticsearch fallback for when ES is available, and a benchmark script to measure before/after performance at scale.#949DevScoopee wants to merge 1 commit into
DevScoopee wants to merge 1 commit into
Conversation
Contributor
|
Kindly resolve conflict. |
…native full-text search engine, backed by a GIN-indexed tsvector generated column. Added an Elasticsearch fallback for when ES is available, and a benchmark script to measure before/after performance at scale. Added a migration that creates a search_vector GIN-indexed tsvector column on the course table. Updated SearchService to use search_vector @@ plainto_tsquery() instead of ILIKE '%query%', eliminating sequential scans. Elasticsearch is attempted first when available, falling back to PG-FTS on failure. Relevance ranking is preserved via ts_rank. All 9 unit tests pass, typecheck and lint are clean. Closes rinafcode#814
Contributor
|
Conflict not yet resolved |
Author
|
rrently working on it, i had power outage problems yesterday. but will
deliver before the end of today InshaAllah
…On Thu, 2 Jul 2026 at 05:53, Rukayat Zakariyau ***@***.***> wrote:
*RUKAYAT-CODER* left a comment (rinafcode/teachLink_backend#949)
<#949 (comment)>
Conflict not yet resolved
—
Reply to this email directly, view it on GitHub
<#949?email_source=notifications&email_token=BFSYCOAWEHMIFM4JDP4IKIL5CYWKZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBWGQ2DGNJXGA42M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-4864435709>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BFSYCOHU3KFI75N3VI7QVO35CYWKZAVCNFSNUABFKJSXA33TNF2G64TZHM4TKOJXG4ZTCMBSHNEXG43VMU5TINZXGA4DINRUGYZ2C5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BFSYCOAVZ3YQ3VZKKR5ZSF35CYWKZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBWGQ2DGNJXGA42M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/BFSYCOCCCUJ7GYPBBIJPQ7L5CYWKZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBWGQ2DGNJXGA42M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added a migration that creates a search_vector GIN-indexed tsvector column on the course table. Updated SearchService to use search_vector @@ plainto_tsquery() instead of ILIKE '%query%', eliminating sequential scans. Elasticsearch is attempted first when available, falling back to PG-FTS on failure. Relevance ranking is preserved via ts_rank.
Closes #814