You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/08/29 13:26:08 UTC
[GitHub] iilyak opened a new pull request #1586: Improve cleanup_index_files
iilyak opened a new pull request #1586: Improve cleanup_index_files
URL: https://github.com/apache/couchdb/pull/1586
## Overview
The previous implementation was based on a search using
{view_index_dir}/.shards/*/{db_name}.[0-9]*_design/mrview/*
This wildcard includes all shards for all indexes of all databases.
This caused performance issues in the case when there are thousands of databases on the node.
This PR changes the search to look at index_directory of a database.
## Testing recommendations
```
make && make eunit apps=couch tests=mrview_cleanup_index_files_test_
```
## Related Issues or Pull Requests
N/A
## Checklist
- [x] Code is written and works correctly;
- [x] Changes are covered by tests;
- [ ] Documentation reflects the changes;
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services