Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-859

limits document incorrect for size of index values

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    Description

      From http://docs.mongodb.org/manual/reference/limits/#limit-index-size

      "Indexed items can be no larger than 1024 bytes. This value is the indexed content (i.e. the field value, or compound field value.)"

      The above is not true. The below is closer to true, from http://docs.mongodb.org/manual/core/indexes/#index-behaviors-and-limitations

      "Index keys can be no larger than 1024 bytes. This includes the field value or values, the field name or names, and the namespace."

      Last time I tried, there was an off-by-some error in the docs for the hard cutoff of this limit, so I'm still not quite trusting the above. I suggest we provide a formula from which users can calculate the maximum size field value for a given index, so they can ensure that they never insert values greater than this limit.

      Attachments

        Activity

          People

            rassi J Rassi
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 1 week, 6 days ago