Skip to content

Commit aa508ee

Browse files
committed
Removed VACUUM due to transaction boundaries.
1 parent c95b58e commit aa508ee

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

plugins/admin/commands.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,6 @@ async def _prune(self, interaction: discord.Interaction,
722722
return
723723
elif _server:
724724
await cursor.execute('DELETE FROM servers WHERE server_name = %s', (_server, ))
725-
await cursor.execute('VACCUM FULL statistics')
726-
await cursor.execute('VACUUM FULL missionstats')
727725
await interaction.followup.send(_("Data of server {} deleted.").format(_server))
728726
return
729727
elif view.what in ['users', 'non-members']:
@@ -754,8 +752,6 @@ async def _prune(self, interaction: discord.Interaction,
754752
# some plugins need to prune their data based on the provided days
755753
for plugin in self.bot.cogs.values(): # type: Plugin
756754
await plugin.prune(conn, days)
757-
await cursor.execute('VACCUM FULL statistics')
758-
await cursor.execute('VACUUM FULL missionstats')
759755
await interaction.followup.send(_("All data older than {} days pruned.").format(days),
760756
ephemeral=ephemeral)
761757
await self.bot.audit(f'pruned the database', user=interaction.user)

0 commit comments

Comments
 (0)