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
Timeouts when deleting a post #821
Comments
|
I believe this is due to this line https://github.com/thepracticaldev/dev.to/blob/master/app/controllers/articles_controller.rb#L128
In addition there's this before_destroy_actions that executes before all of what I mentioned before, I guess this executes synchronously as well. Can I be assigned to this? |
|
Yep @rhymes ! give it a whirl. |
|
This is still an issue, so raising it up again and adding a few details: We could make the A few -- but not exhaustive -- list of things we'll need to consider:
|
|
Hi @Zhao-Andy I haven't actually looked into it after all, I'm sorry. I don't think it's an easy PR for me because it requires familiarity with the caching system or Algolia and I don't have that. Maybe you can give a read to the analysis of the bug I wrote back then on dev.to. There are a services and aspects to consider: caches, fastly, algolia, stream.io and probably others I think the best solution is to do a two phase removal:
|
|
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue in 7 days. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If this issue still requires attention, please respond with a comment. Happy Coding! |
|
still an issue |
|
We now destroy articles in the background 😄 |

Describe the bug
As a user, I want to be able to
Deletemy posts. Currently, it occasionally times out.To Reproduce
This seems to happen more often with articles that have a lot of reactions/comments. So, to reproduce, choose an article you're willing to delete with many reactions/comments and press
Deletefrom your dashboard.Expected behavior
The article is deleted without timeouts.
The text was updated successfully, but these errors were encountered: