Hi Christiaan,
I apologize for the late reply.
The reason for the long time is because it collects all the rows in the tables that match the time period requested, and then compares for each user in the row, whether it is included in the group.
If you have a lot of rows that are returned in the resultSet, then it might take time.
In case of specific queries, like in your example - when you know the names of the users, you can just query the tables directly from the DB - just select the rows
"WHERE TIMESTAMPHOUR >= ? AND TIMESTAMPHOUR < ? AND LOGONID = <specific user name>".
The documentation about what are the columns of the tables can be found in the formal documentation:
I hope it helps.
Thanks & regards,
Michal Zilcha-Lang