Skip to content

Commit

Permalink
replacing vacuum full (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy authored Feb 9, 2024
1 parent 09598de commit 7030791
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/controllers/item/shared/item-data-processing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ export const itemDataProcessing = async ({ projectName, scenarioName, itemId })
AnalyticsEvent.reportDetails(labelStats.length, overview.duration)

if (scenarioSettings.deleteSamples) {
logger.info(`Item: ${itemId} deleting samples data`)
logger.info(`Purging samples data, item_id: ${itemId}`)
await db.none(deleteSamples(itemId))
await db.none("VACUUM FULL jtl.samples")
logger.info(`Item: ${itemId} samples data deletion done`)
await db.none("VACUUM jtl.samples")
logger.info(`Samples purge completed, item_id: ${itemId} `)
}

} catch(error) {
Expand Down

0 comments on commit 7030791

Please sign in to comment.