prevent parallel plot requests
Plotting can take a long time and use a lot of resources. Multiple plot requests can cause the machine to run OOM. We are now allowing plots for 500k files again. This is mainly to prevent unwanted plots of everything.
This commit is contained in:
@@ -80,7 +80,7 @@ public class TagsToFile implements AutoCloseable {
|
||||
final List<PdbFile> result = new ArrayList<>();
|
||||
|
||||
final List<Doc> searchResult = db.search(query);
|
||||
if (searchResult.size() > 100_000){
|
||||
if (searchResult.size() > 500_000){
|
||||
throw new IllegalStateException("Too many results.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user