Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2932

Create capped collections automatically at the first insertion

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Performance
    • None
    • Win32 C++ (VS2008)

    Description

      Is it possible creating capped collections automatically at the first
      insertion?

      I receive some "packets" from a client. This data contains a name as
      the first field. I don't know all these names "a priori", but I'd like
      storing those data in capped collection (size is known). As far as I
      know, if I db.insert("name") I'll create a no-capped collection... can
      I change such behaviour? I'd like to avoid checks for existing tables
      before storing (I can receive thousand of packets with the same name
      and this check is unreasonable...).

      Attachments

        Activity

          People

            Unassigned Unassigned
            downwind Giorgio Merlini
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: