rimu,
@rimu@mastodon.nzoss.nz avatar

Added full-text search to today.

After reading a massive tome about earlier this week I realised it was complete overkill and just used the full-text capabilities of instead.

Currently PieFed has 46,000 posts and results are fast. It'll be interesting to see how well it copes when there are more posts. Anyone want to make a guess when it'll bog down?

https://piefed.social/post/48889

sanityinc,
@sanityinc@hachyderm.io avatar

@rimu If you've got GIN indexes set up then you'll probably never need a different search solution

rimu,
@rimu@mastodon.nzoss.nz avatar

@sanityinc I think there's GIN involved - the module I'm using mentions them in the code... Line 239 https://github.com/falcony-io/sqlalchemy-searchable/blob/master/sqlalchemy_searchable/

kopper,

@rimu if postgres ends up bogging down consider taking a look at https://github.com/valeriansaliou/sonic, it seems to be a nice compromise between the behemoths of elastic and meili and the simplicity of postgres fts.

(this instance i'm on is modified to use postgres fts and with almost 2 million posts in the database it's still quite fast, though search isn't as accurate as the 'simple' language in postgres fts not doing any language stuff and sharkey hasn't merged post language support just yet so i can't adjust it properly)

rimu,
@rimu@mastodon.nzoss.nz avatar

@kopper Sonic looks amazing, thanks!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • PostgreSQL
  • DreamBathrooms
  • magazineikmin
  • InstantRegret
  • Youngstown
  • slotface
  • hgfsjryuu7
  • mdbf
  • vwfavf
  • kavyap
  • tsrsr
  • ngwrru68w68
  • PowerRangers
  • thenastyranch
  • everett
  • tester
  • Durango
  • osvaldo12
  • khanakhh
  • ethstaker
  • rosin
  • cubers
  • tacticalgear
  • GTA5RPClips
  • normalnudes
  • cisconetworking
  • modclub
  • Leos
  • anitta
  • All magazines