Package io.goobi.viewer.dao.update
Class MessageQueueUpdate
java.lang.Object
io.goobi.viewer.dao.update.MessageQueueUpdate
- All Implemented Interfaces:
IModelUpdate
Adds an index on
mq_messages.last_update_time to existing databases. Old finished messages are deleted by this column
(see MessageQueueBean); without an index, every such deletion scans and locks the entire table, which
with hundreds of thousands of messages blocked the message queue and every request that queued a task.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanupdate(IDAO dao, CMSTemplateManager templateManager) update.
-
Constructor Details
-
MessageQueueUpdate
public MessageQueueUpdate()
-
-
Method Details
-
update
public boolean update(IDAO dao, CMSTemplateManager templateManager) throws DAOException, SQLException Description copied from interface:IModelUpdateupdate.- Specified by:
updatein interfaceIModelUpdate- Parameters:
dao- aIDAOobject.templateManager- CMS template manager used during update- Returns:
- true if rows were updated; false otherwise
- Throws:
DAOException- if any.SQLException- if any.
-