Skip to main content
added [postgresql-performance] to 571 questions - Shog9 (Id=1924)
Link
Notice removed Reward existing answer by ypercubeᵀᴹ
Bounty Ended with Erwin Brandstetter's answer chosen by ypercubeᵀᴹ
Tweeted twitter.com/StackDBAs/status/944947238995980288
Notice added Reward existing answer by ypercubeᵀᴹ
Bounty Started worth 300 reputation by ypercubeᵀᴹ
add tag
Link
Erwin Brandstetter
  • 186.5k
  • 28
  • 465
  • 639
added 2 characters in body
Source Link

At a high level, this query is supposed to return PulledTexts whose IDs match those returned by the subqueries. The subqueries are simply meant to return the list of IDs of PulledTexts that contain lets say ('audit' AND 'trial') OR 'automate'('audit' AND 'trial') OR 'automate' from the UniqueWords table. This is exactly what the example query I gave does. The WordTexts table is a simple mapping of UniqueWord to PulledText.

At a high level, this query is supposed to return PulledTexts whose IDs match those returned by the subqueries. The subqueries are simply meant to return the list of IDs of PulledTexts that contain lets say ('audit' AND 'trial') OR 'automate' from the UniqueWords table. This is exactly what the example query I gave does. The WordTexts table is a simple mapping of UniqueWord to PulledText.

At a high level, this query is supposed to return PulledTexts whose IDs match those returned by the subqueries. The subqueries are simply meant to return the list of IDs of PulledTexts that contain lets say ('audit' AND 'trial') OR 'automate' from the UniqueWords table. This is exactly what the example query I gave does. The WordTexts table is a simple mapping of UniqueWord to PulledText.

added 98 characters in body
Source Link
Loading
added 237 characters in body
Source Link
Erwin Brandstetter
  • 186.5k
  • 28
  • 465
  • 639
Loading
trim noise
Source Link
Erwin Brandstetter
  • 186.5k
  • 28
  • 465
  • 639
Loading
added 2309 characters in body
Source Link
Loading
added 2309 characters in body
Source Link
Loading
Added the DDL
Source Link
Loading
Source Link
Loading