Skip to content

Processing time for some queries #321

@gcelano

Description

@gcelano

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.

UPDATE 4/2/2025

I notice that Annis goes into an infinite loop also with specific queries such as

pos=‎"v‎" & pos=‎"n‎" @* author=‎"Quintus Smyrnaeus‎" & #1 ->dep[dep_fnc=‎"OBJ‎"] #2

If I add #1 . #2 , however, it works super fast.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions