[
https://issues.apache.org/jira/browse/QPID-7436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15522678#comment-15522678
]
Keith Wall commented on QPID-7436:
----------------------------------
Attaching patch containing experiment with deleting message instances using a
cursor, rather than individually. The performance improvement for BDB was
negligible.
> Improve the speed at which large queues can be cleared
> ------------------------------------------------------
>
> Key: QPID-7436
> URL: https://issues.apache.org/jira/browse/QPID-7436
> Project: Qpid
> Issue Type: Improvement
> Components: Java Broker
> Reporter: Keith Wall
> Fix For: qpid-java-7.0.0
>
> Attachments: bdb_cursor_dequeue_message_instances.patch
>
>
> Currently clearing a large queue takes a considerable length of time. This
> can increase the recovery time of an application trying to recover from a
> production incident.
> The store should have the ability to perform something analogous to a
> database {{TRUNCATE TABLE}} to quickly remove all entries on a queue. It may
> be necessary to temporarily suspend enqueues to a queue whilst the operation
> is ongoing.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]