benawad / benawad/postgres-full-text-search

Small improvement possible to store tsvectors

Open
#3 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
PLpgSQL
Stars
89
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Hi @benawad ,

Thanks for the great tutorial.
I am currently learning about FTS in postgres.

I thing there is a small improvement that you can do.
Instead of having triggers, you can use a generated column to keep your ts_vectors updated.
Its better explained here: https://youtu.be/6MTOFWQ0efY?t=1987

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by locating the repository’s trigger-based tsvector setup and review the linked PostgreSQL explanation, then determine the intended scope of replacing it with a generated column. Done should mean the agreed storage approach is implemented and its update behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgres
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.