• Stan Hu's avatar
    Cache column_exists? for Elasticsearch columns · 65be69cf
    Stan Hu authored
    Any time a searchable object (e.g. issue, merge request, project, etc.)
    is updated, the `after_commit` hook checks whetether two Elasticsearch
    columns are present in the application_settings table. This leads to
    unnecessary queries in production as the value can just be cached by
    connection.
    
    Closes gitlab-org/gitlab-ce#43355
    65be69cf
sh-cache-column-exists-cache.yml 99 Bytes