×

Technique for managing messages

  • US 8,306,952 B2
  • Filed: 03/29/2005
  • Issued: 11/06/2012
  • Est. Priority Date: 03/29/2005
  • Status: Active Grant
First Claim
Patent Images

1. A method for minimizing an elapsed time to delete messages stored in a messaging system, the method being implemented by one or more data processors and comprising:

  • determining, by at least one data processor, a number of messages not designated for deletion within a current data container within a messaging persistence layer of the messaging system;

    determining, by at least one data processor, whether a quantity of messages designated for deletion within the current data container within the messaging persistence layer of the messaging system exceeds a predetermined threshold;

    calculating, by at least one data processor, a first amount of time required to delete the messages designated for deletion, based on the quantity of messages designated for deletion and an average amount of time to delete a single message;

    calculating, by at least one data processor, a second amount of time required to copy messages not designated for deletion in the current data container to a new data container within the messaging persistence layer of the messaging system, the second amount of time being based on the number of messages not designated for deletion and an average amount of time to copy a single message and based on an amount of time to drop the current data container and to generate the new data container;

    determining, by at least one data processor, whether the first amount of time is less than the second amount of time or whether the second amount of time is less than the first amount of time or whether the first amount of time is equal to the second amount of time;

    when the second amount of time exceeds the first amount of time, deleting, by at least one data processor, the messages designated for deletion; and

    when the first amount of time either exceeds the second amount of time or is equal to the second amount of time, copying, by at least one data processor, the messages not designated for deletion into the new data container and deleting the current data container;

    wherein each data container comprises a table within a database.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×