Skip to content

Conversation

@nickva
Copy link
Contributor

@nickva nickva commented Aug 1, 2025

  • If the plugin doesn't need to inspect ddocs at the cluster level, avoid the expensive fabric:all_docs() call, both the finder and the conflict checker benefit from this one.

  • Let the plugins examine the #full_doc_info{} structure directly in the new optional doc_fdi callback. Previously, the conflict checker had to re-read the FDI just to look for conflict even though the plugin already read the FDI.

 * If the plugin doesn't need to inspect ddocs at the cluster level, avoid the
 expensive `fabric:all_docs()` call, both the finder and the conflict checker
 benefit from this one.

 * Let the plugins examine the `#full_doc_info{}` structure directly in the new
 optional `doc_fdi` callback. Previously, the conflict checker had to re-read
 the FDI just to look for conflict even though the plugin already read the FDI.
Copy link
Contributor

@jiahuili430 jiahuili430 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1
Tested locally and it works as expected.
Thank you for improving the performance for the scanner!

@nickva
Copy link
Contributor Author

nickva commented Aug 1, 2025

@jiahuili430 thank you for the review!

@nickva nickva merged commit d9a6ac5 into main Aug 1, 2025
23 checks passed
@nickva nickva deleted the improve-scanner-performance branch August 1, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants