Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
replaced http://dba.stackexchange.com/ with https://dba.stackexchange.com/
Source Link

Also adding separators between word to avoid false positives from matching illegally combined words, like @Daniel hinted in his comment@Daniel hinted in his comment.

Also adding separators between word to avoid false positives from matching illegally combined words, like @Daniel hinted in his comment.

Also adding separators between word to avoid false positives from matching illegally combined words, like @Daniel hinted in his comment.

explain more
Source Link
Erwin Brandstetter
  • 182.1k
  • 28
  • 457
  • 620

Using LEFT [OUTER] JOIN we don't exclude rows without relatives in the joined tables.

By aggregating multiple rows before joining we avoid the cross-multiplication of rows.

I concatenate the string with concat_ws() (which ignores potential NULL values from any of the contributing sources) and call to_tsvector() only once, which should be a bit cheaper.

I concatenate the string with concat_ws() (which ignores potential NULL values from any of the contributing sources) and call to_tsvector() only once, which should be a bit cheaper.

Using LEFT [OUTER] JOIN we don't exclude rows without relatives in the joined tables.

By aggregating multiple rows before joining we avoid the cross-multiplication of rows.

I concatenate the string with concat_ws() (which ignores potential NULL values from any of the contributing sources) and call to_tsvector() only once, which should be a bit cheaper.

version
Source Link
Erwin Brandstetter
  • 182.1k
  • 28
  • 457
  • 620
Loading
Source Link
Erwin Brandstetter
  • 182.1k
  • 28
  • 457
  • 620
Loading