I have a table to store state for an SQS queue that is accessed from multiple processes. The way that it works now is that all messages in the queue are added to the table.