• Dmitry Gruzd's avatar
    Cache ES enabled namespaces and projects · aa4f1cf4
    Dmitry Gruzd authored
    SELECT query involving `elasticsearch_indexed_projects` table
    consumes a lot of resources. The query itself is not slow
    (13.224 ms/call), but it happens almost 100 times per second.
    
    This change implements caching of `elasticsearch_indexed_projects` and
    `elasticsearch_indexed_namespaces`.
    aa4f1cf4
elasticsearch_indexed_project.rb 1.08 KB