mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-23 00:07:48 +01:00
this commit is an attempt at building a search functionality using only the stuff provided by postgresql it is, unfortunately, painfully slow: PgSearch::Document Load (7869.1ms) SELECT "pg_search_documents".* FROM "pg_search_documents" INNER JOIN (SELECT "pg_search_documents"."id" AS pg_search_id, (ts_rank((to_tsvector('simple', coalesce("pg_search_documents"."content"::text, ''))), (to_tsquery('simple', ''' ' || 'awoo' || ' ''')), 0)) AS rank FROM "pg_search_documents" WHERE ((to_tsvector('simple', coalesce("pg_search_documents"."content"::text, ''))) @@ (to_tsquery('simple', ''' ' || 'awoo' || ' ''')))) AS pg_search_ce9b9dd18c5c0023f2116f ON "pg_search_documents"."id" = pg_search_ce9b9dd18c5c0023f2116f.pg_search_id ORDER BY pg_search_ce9b9dd18c5c0023f2116f.rank DESC, "pg_search_documents"."id" ASC LIMIT $1 [["LIMIT", 10]] |
||
---|---|---|
.. | ||
answer | ||
appendable | ||
concerns | ||
list | ||
notification | ||
question | ||
relationships | ||
reports | ||
user | ||
.keep | ||
announcement.rb | ||
anonymous_block.rb | ||
answer.rb | ||
appendable.rb | ||
application_record.rb | ||
comment.rb | ||
inbox.rb | ||
list.rb | ||
list_member.rb | ||
mute_rule.rb | ||
notification.rb | ||
profile.rb | ||
question.rb | ||
relationship.rb | ||
report.rb | ||
role.rb | ||
subscription.rb | ||
theme.rb | ||
totp_recovery_code.rb | ||
user.rb | ||
user_ban.rb | ||
web_push_subscription.rb |