korpling/ANNIS

Processing time for some queries

Opened this issue · 0 comments

There are a few queries that require a long processing time and during which the server becomes so busy that it cannot accept further ANNIS queries. For Example, the following query takes minutes because of .* (but note that it is limited by @* author="Homer" and I was expecting it to be rather fast):

pos="n" ->dep[dep_fnc="ATR"] pos="n" & #1 ->dep[dep_fnc="ATR"] pos="l" 
& #2 .* #1 & #3 .* #2 &  case="g" _ident_ #2 @* author="Homer"

while the following is very fast:

pos="n" ->dep[dep_fnc="ATR"] pos="n" & #1 ->dep[dep_fnc="ATR"] pos="l" 
& #2 .1,3 #1 & #3 .1,3 #2 &  case="g" _ident_ #2 @* author="Homer"

More in general, it would helpful if there were a way to limit processing time/absorbtion of resources, even if this means that the results cannot be returned. A "stop button" would also be helpful, in case one notices that ANNIS is taking too much time.