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:
ahr
2017-12-15 17:20:12 +01:00
parent 8d48726472
commit d63fabc85d
3 changed files with 40 additions and 11 deletions

View File

@@ -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.");
}