Skip to content

Search performance and search cancellation #1565

Description

@ertankucukoglu

What problem does this solve?

  • There are about 184000 files in database and a simple *.pas filter searches among them all. However, there is only 445 *.pas files in database.
  • There is a risk of corrupting common temporary files when there are parallel searches.
  • Cancelled search continues its own search operation and does not stop.
  • Performance counters are not quite detailed.
  • A lot of matching search like letter "a" is not stopping the PowerShell search at 500 files even if C part is only using the first 500 accepted result.

Proposed solution

I have below diff package against to the current master (hopefully it is still matching as master is quite frequently changing recently).
Total 5 files including new tests. Compiled and tested on my system.
cbm-main-60a2bbf.zip

Please feel free to use them as you like, or simply ignore if they break something else or does not feel right.

Thanks.

Alternatives considered

No response

Confirmations

  • I searched existing issues and this is not a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority/normalStandard review queue; useful PR with ordinary maintainer urgency.stability/performanceServer crashes, OOM, hangs, high CPU/memoryux/behaviorDisplay bugs, docs, adoption UXwindowsWindows-specific issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions