chilts / mongodb-queue

Message queues which uses MongoDB.
209 stars 91 forks source link

Date type instead of string for datetime fields #21

Open ppaskaris opened 7 years ago

ppaskaris commented 7 years ago

Greetings,

I really like the simplicity of this package, but I was wondering: is there a particular reason that this uses strings for the deleted and visible fields?

Using a date field would allow for adding a TTL Index to the deleted field, enabling the database to automatically clean up old messages.

TomKaltz commented 6 years ago

+1

ianitsky commented 3 years ago

+1