Workaround for BKtree.

This commit is contained in:
Syfaro 2020-01-26 22:52:57 -06:00
parent ce52f145d9
commit 9c930d17b1

View File

@ -132,7 +132,8 @@ pub fn image_query_sync(
FROM tweet_media
WHERE
tweet_media.tweet_id = hashes.twitter_id AND
tweet_media.hash = hashes.hash
tweet_media.hash <@ (hashes.hash, 0)
LIMIT 1
) tm ON hashes.twitter_id IS NOT NULL
WHERE {}", hash_where_clause);