… to mongo query, In case that we had 200 000 triggers those triggers are fetch every time, event if the batch size is equal to lower number.
-Move acquiredEnough check at the end of for loop. In case that tirggers have enough values we don't want to execute another mongo query, but finish before that action
… to mongo query, In case that we had 200 000 triggers those triggers are fetch every time, event if the batch size is equal to lower number.
-Move acquiredEnough check at the end of for loop. In case that tirggers have enough values we don't want to execute another mongo query, but finish before that action