test: benchmark blocked activity filters
This commit is contained in:
parent
4a347d0625
commit
09575bfcba
|
|
@ -376,6 +376,12 @@ defmodule Mix.Tasks.Wnh.DbScaleBenchmark do
|
|||
ON activity_participants.activity_id = activities.id
|
||||
AND activity_participants.user_id = md5('user-2')::uuid
|
||||
AND activity_participants.status IN ('requested', 'approved')
|
||||
WHERE activities.creator_id NOT IN (
|
||||
SELECT blocked_id FROM blocks WHERE blocker_id = md5('user-2')::uuid
|
||||
)
|
||||
AND activities.creator_id NOT IN (
|
||||
SELECT blocker_id FROM blocks WHERE blocked_id = md5('user-2')::uuid
|
||||
)
|
||||
ORDER BY activities.starts_at DESC, activities.id DESC LIMIT 25
|
||||
""",
|
||||
"messages" => """
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user