# Performance deleting post in large topic

**URL:** https://meta.discourse.org/t/performance-deleting-post-in-large-topic/30088
**Category:** Bug
**Tags:** performance
**Created:** [2015年六月16日 15:12 UTC](https://meta.discourse.org/t/performance-deleting-post-in-large-topic/30088 "2015-06-16T15:12:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![anon21958287](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@anon21958287](https://meta.discourse.org/u/anon21958287)
#### Post date: [2015年六月16日 15:12 UTC](https://meta.discourse.org/t/performance-deleting-post-in-large-topic/30088/1 "2015-06-16T15:12:43Z")

</div>

Deleting or restoring a post in a large topic (the one I saw this happen with had about 56K posts) caused performance problems for nearly 10 minutes.

I was getting 504 timeouts during that period.

---

<div class="post-metadata">

### Author: ![accalia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/accalia/32/48626_2.png) [@accalia](https://meta.discourse.org/u/accalia)
#### Post date: [2015年六月16日 15:21 UTC](https://meta.discourse.org/t/performance-deleting-post-in-large-topic/30088/2 "2015-06-16T15:21:00Z")

</div>

I’ll confirm that time frame.

our instance monitor captured an outage starting at 1032(GMT-0400) lasting until 1039(GMT-0400) today where response times for our discourse instance were \> 15 seconds. I don’t have data on whether those were simply exceptionally long requests or whether they would generate a 504 error as the monitor times out at 15 seconds and records the site as offline.

An earlier outage occurred at roughly 0942(GMT-0400) and lasted until about 0954(GMT-0400) today according to our monitoring site.

Monitoring data is available for the affected day [here](http://servercooties.com/raw?start=2015-06-16&end=2015-06-17) (CSV formatted)

---

<div class="post-metadata">

### Author: ![anon21958287](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@anon21958287](https://meta.discourse.org/u/anon21958287)
#### Post date: [2015年六月16日 15:30 UTC](https://meta.discourse.org/t/performance-deleting-post-in-large-topic/30088/3 "2015-06-16T15:30:20Z")

</div>

> [@accalia](#):
>
> An earlier outage occurred at roughly 0942EST and lasted until about 0954EST today according to our monitoring site.

Yes, that period coincided with the same activity. The 1032E **D** T was a test to confirm that my action was the cause.

---

<div class="post-metadata">

### Author: ![accalia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/accalia/32/48626_2.png) [@accalia](https://meta.discourse.org/u/accalia)
#### Post date: [2015年六月16日 15:31 UTC](https://meta.discourse.org/t/performance-deleting-post-in-large-topic/30088/4 "2015-06-16T15:31:53Z")

</div>

> [@boomzilla](#):
>
> EDT

i always forget that. for maximum clarity edited with offsets to GMT

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2015年六月17日 23:59 UTC](https://meta.discourse.org/t/performance-deleting-post-in-large-topic/30088/5 "2015-06-17T23:59:39Z")

</div>

Fixed per:

[https://github.com/discourse/discourse/commit/1343d40558cd1aeeb33599a41dd2a46743849443](https://github.com/discourse/discourse/commit/1343d40558cd1aeeb33599a41dd2a46743849443)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2015年六月17日 23:59 UTC](https://meta.discourse.org/t/performance-deleting-post-in-large-topic/30088/6 "2015-06-17T23:59:43Z")

</div>


