Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Counting posts takes too long, has a tendency to cause timeouts on login #397

Open
codl opened this issue Feb 7, 2021 · 3 comments
Open
Labels

Comments

@codl
Copy link
Owner

codl commented Feb 7, 2021

LOG:  duration: 205203.988 ms  statement: SELECT count(*) AS count_1 
        FROM (SELECT posts.created_at AS posts_created_at, posts.updated_at AS posts_updated_at, posts.id AS posts_id, posts.author_id AS posts_author_id, posts.favourite AS posts_favourite, posts.has_media AS posts_has_media, posts.direct AS posts_direct, posts.favourites AS posts_favourites, posts.reblogs AS posts_reblogs, posts.is_reblog AS posts_is_reblog 
        FROM posts 
        WHERE 'mastodon:1@chitter.xyz' = posts.author_id) AS anon_1

I need to move the DB off of spinning rust at some point

@codl codl added the defect label Feb 7, 2021
@NoraCodes
Copy link

This (I think??) is making it impossible to log in - is there a workaround?

@codl
Copy link
Owner Author

codl commented Aug 15, 2021

@NoraCodes Not at the moment, sorry. But also see #511 which is more likely to be the current reason for your issue, have you tried again later?

@NoraCodes
Copy link

NoraCodes commented Aug 15, 2021 via email

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants