-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Filter Duplicate Boosts from local TL feature is filtering non-duplicate boosts as well #37
Comments
Going to do some direct DB queries to debug this rn |
PGHero gives us this explanation of a query:
So there is something going on here with not having a specific index for |
When I add the index, the
and from my reading it will do a Seq Scan when doing an index scan is too costly to start up (there are few records), but for some reason my data faking spec test is no longer persisting to the db, but i suspect this is the problem. I haven't yet figured out a satisfying explanation why that query would return false because theoretically you should be able to use the existing I can't replicate the bug on my dev instance, but since the bug is ongoing and is affecting multiple ppl, it might be worth deploying an update that just adds the index and see if the problem persists? sort of a janky way of testing in prod, but i don't have a ton of better ideas. |
Thanks for looking into this! If adding the index turns out to be too costly, could we roll it back? If so, then I think it may be worth trying. If not, then I think this is a minor bug that doesn't need immediate fixing as the boost certainly appears on the person's profile and the home feed as well (if enabled - which is the default). |
Yes we definitely could roll it back - we would just want to be mindful to keep our changes linear. Adding and removing an index is more undoable because we arent changing the shape of the data, but if we were like adding/removing a table or column or whatevs we would have to be a lot more careful if ppl were relying on it. I want to read more about it before trying it but from what I understand it should be possible to try. I still want to try some direct db queries to try debugging and I may do that now that im home |
OH OBVIOUSLY IT IS BECAUSE PEOPLE THAT AREN'T ON OUR SERVER BOOSTING A POST ARE ALSO IN OUR DATABASE SELECT "statuses"."id",
"statuses"."updated_at",
"statuses"."reblog_of_id",
"statuses"."text",
"accounts"."username"
FROM "statuses"
INNER JOIN "accounts" ON "accounts"."id" = "statuses"."account_id"
WHERE statuses.reblog_of_id = 111842966894960735
ORDER BY "statuses"."id"; and the most recent boost is someone on a different instance. EZPZ |
lol, amazing work figuring this out!! |
closed by #38 |
Steps to reproduce the problem
...
Expected behaviour
Only duplicate boosts should be filtered
Actual behaviour
Non-duplicate boosts are being filtered
Detailed description
What's happening is that for some instances, even the first boost is being filtered out.
Relevant feature: https://wiki.neuromatch.social/Filter_Duplicate_Boosts
I'm no query expert but something in the query is filtering non-duplicate boosts for certain posts (not all) from the local TL.
Mastodon instance
neuromatch.social
Mastodon version
v4.3.0-alpha.0+glitch
Technical details
If this is happening on your own Mastodon server, please fill out those:
The text was updated successfully, but these errors were encountered: