Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve tag search on Problem #78

Open
3 tasks
Eason0729 opened this issue Aug 24, 2024 · 0 comments
Open
3 tasks

Improve tag search on Problem #78

Eason0729 opened this issue Aug 24, 2024 · 0 comments
Labels
C-Backend Relate to backend K-Feature Feature request P-Middle Middle priority

Comments

@Eason0729
Copy link
Contributor

The state of art for problem search:

  1. support text search (using %text%): sqlx doesn't support fts5 or tsvector
  2. support tag search (using COUNT(DISTINCT "problem"."id"))
  • automatically add tag on addition
  • Cannot auto-compelete tag or list tag
  • tag would not delete if all problem deleted

periodic tag deletion was chosen because we use read committed isolation level on SQL transcation during tag addition for performance.

TODO:

  • write auto-compelete API
  • auto compeletion caching
  • periodic tag deletion
@Eason0729 Eason0729 added P-Middle Middle priority C-Backend Relate to backend K-Feature Feature request labels Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Backend Relate to backend K-Feature Feature request P-Middle Middle priority
Projects
None yet
Development

No branches or pull requests

1 participant