The code to update a library and remove duplicate records (LibraryView.solr_update_library) requires that you page through a library - only the records on the current page are passed to the code. This works ok for smaller libraries but can lead to unexpected results for larger ones.