Settings to control repository index #3124
Robin Shen opened 1 month 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 1 month ago
  • Davide Beatrici commented 4 weeks 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 4 weeks ago

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

  • Davide Beatrici commented 4 weeks ago

    Ah, sorry, you're right.

  • Robin Shen commented 2 days 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' 2 days ago
    Previous Value Current Value
    Open
    Closed
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