By reusing the ScriptService we are hitting a circuit breaker that prevents large featuresets to be compiled in one row.
Currently we used featureset with 14 features and the limit is 15 compilations per minutes, with larger featuresets we need to send the query multiple times in several minutes to be able to compile all the features.
This is rather dangerous and we should find a solution:
- easy/short term: increase script.max_compilations_per_minute so that we never fail on it
- do not depend on ScriptService: import mustache and do the templating on our own (storing compiled templates in our cache)