Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Database
Created by Guest
Created on Aug 18, 2022

Support compound TTL index

Right now you can only do a single field TTL index. I would like a put a TTL on a compound index.
  • Attach files
  • Guest
    Aug 22, 2022
    Maybe this would work? A conditional on a single field? https://dev.to/lironer/delete-expired-documents-automatically-with-mongodb-ttl-index-l44