Uploaded image for project: 'RAML Module Builder'
  1. RAML Module Builder
  2. RMB-498

Truncate b-tree string for 2712 index row size

    XMLWordPrintable

Details

    • CP: sprint 77, CP: sprint 78, CP: sprint 79
    • 3
    • Core: Platform

    Description

      PostgreSQL returns an error like "index row size 3256 exceeds maximum 2712 for index" if a string to be indexed by an b-tree exceeds the maximum index row size. RMB should truncate the string using left(string, 600) when using a b-tree. A UTF-8 character can be up to 4 bytes long, 4*600 < 2712.
      This still allows to use the index for sorting and for matching (exact and right truncation).

      Note for exact and right truncation matching: If the search string is up to 600 characters long use left(field, 600) = searchstring. If the search string is longer than 600 characters use left(field, 600) = left(searchstring, 600) AND field = searchstring to make use of the index and afterwards filter using the complete field.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                evaluk Eric Valuk
                julianladisch Julian Ladisch
                Votes:
                0 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases