# Are there any performance or inconsistency issues when using Permanently Delete?

**URL:** https://meta.discourse.org/t/are-there-any-performance-or-inconsistency-issues-when-using-permanently-delete/271398
**Category:** Support
**Tags:** permanently-delete
**Created:** [November 17, 2021, 1:37pm UTC](https://meta.discourse.org/t/are-there-any-performance-or-inconsistency-issues-when-using-permanently-delete/271398 "2021-11-17T13:37:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Simon\_Manning](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_manning/32/198596_2.png) [@Simon\_Manning](https://meta.discourse.org/u/Simon_Manning)
#### Post date: [November 17, 2021, 1:37pm UTC](https://meta.discourse.org/t/are-there-any-performance-or-inconsistency-issues-when-using-permanently-delete/271398/1 "2021-11-17T13:37:05Z")

</div>

> [@Introducing permanently delete post functionality](https://meta.discourse.org/t/introducing-permanently-delete-post-functionality/207109/1):
>
> because of how dangerous it can be

Are there dangers such as reduced database performance, inconsistencies, anything else? Or is not being able to recover the permanently deleted posts the only danger?

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [November 17, 2021, 5:02pm UTC](https://meta.discourse.org/t/are-there-any-performance-or-inconsistency-issues-when-using-permanently-delete/271398/2 "2021-11-17T17:02:00Z")

</div>

> [@Simon\_Manning](#):
>
> Are there dangers such as reduced database performance, inconsistencies, anything else? Or is not being able to recover the permanently deleted posts the only danger?

It is just that once a post is deleted it is gone forever and it cannot be recovered. There are no performance concerns.

---

<div class="post-metadata">

### Author: ![mentalstring](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalstring/32/168934_2.png) [@mentalstring](https://meta.discourse.org/u/mentalstring)
#### Post date: [November 17, 2021, 6:34pm UTC](https://meta.discourse.org/t/are-there-any-performance-or-inconsistency-issues-when-using-permanently-delete/271398/3 "2021-11-17T18:34:59Z")

</div>

I actually have the opposite question: isn’t there reduced performance from Discourse from only soft deleting posts instead always permanently deleting them? There must be some burden acumulated after some years for some forums. Is it done this way to keep statistics for each account even when posts/topics are removed?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [November 17, 2021, 6:47pm UTC](https://meta.discourse.org/t/are-there-any-performance-or-inconsistency-issues-when-using-permanently-delete/271398/4 "2021-11-17T18:47:36Z")

</div>

> [@mentalstring](#):
>
> I actually have the opposite question: isn’t there reduced performance from Discourse from only soft deleting posts instead always permanently deleting them?

Not really. BTree indexes mean we can search in `O(log n)` for posts and topics, so there is a sub-linear cost growth.

In the largest Discourse instances out there, post quantity never were the performance bottleneck in production. That said we keep an eye on it and we can always come back and refactor it if needed.

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [November 17, 2021, 7:38pm UTC](https://meta.discourse.org/t/are-there-any-performance-or-inconsistency-issues-when-using-permanently-delete/271398/5 "2021-11-17T19:38:35Z")

</div>

In short, no.

First of all, I believe that most communities have many more visible posts than deleted posts. For example, here on Meta the total amount of posts is 1,015,386 and only 81,480 of these are deleted. That is less than 10%. Probably the total amount of deleted data is less than 100MB of data.

As Falco said, the performance impact of storing and indexing more data is negligible. Database systems are optimized to hold a lot more data than one can imagine and even the most simple configurations can hold thousands of thousands of data points without breaking a sweat.

Maybe this is not the best comparison in the world, but can you notice your PC getting slower as you store more files? Most probably no and the file system is some kind of database system too. 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 12, 2023, 12:40pm UTC](https://meta.discourse.org/t/are-there-any-performance-or-inconsistency-issues-when-using-permanently-delete/271398/6 "2023-07-12T12:40:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
