Settings to control repository index #3124
Robin Shen opened 2 months ago

Currently index of a repository commit will be created automatically which may accumulate a large index on disk. We should have settings to control whether or not to create index, and which index (full text, symbol etc) to create.

  • Robin Shen referenced from other issue 2 months ago
  • Davide Beatrici commented 1 month ago

    Extra suggestions:

    • Add an option to only index the current/latest commit.
    • Add a file filter. For example, my OneDev instance consumes all memory assigned to the container while indexing at least one specific file.
  • Robin Shen commented 1 month ago

    A code analysis setting already exists allowing include/exclude file patterns to be configured.

  • Davide Beatrici commented 1 month ago

    Ah, sorry, you're right.

  • Robin Shen commented 3 weeks ago

    @davidebeatrici I also experienced this issue recently. AI bots crawl each commit triggering indexing and this generates large index cache. I added a code index setting to optionally require logged-in user to trigger code indexing. It can be set in root projects and all child projects will inherit this setting.

    I am closing this issue as it is no longer necessary with this option and code analysis pattern.

  • Robin Shen changed state to 'Closed' 3 weeks ago
    Previous Value Current Value
    Open
    Closed
  • Davide Beatrici commented 2 weeks ago

    Great, thank you!

  • Davide Beatrici commented 1 week ago

    @robin I was wondering: can a system-wide setting be added to enforce the login requirement? Otherwise a project owner can change the setting at the expense of the server.

  • Robin Shen commented 1 week ago

    There is system wide setting (administration / project defaults) with an enterprise subscription. But project owner can still override that setting.

1/1
Type
Enhancement
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-3124
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover