You are performing one search per pet. That’s underperfoming.
Just do SAWOL (Schedule an API workflow on a list) on API workflow birthdayreminders with the list of Pets fulfilling
date = Current date/time:extract date
month = Current date/time:extract month
There’s no need for field Pets' LastWished.
This way your are saving yourself of doing N searches when you have N Pets to act on a certain date + modifying Pets records to update the LastWished field.
Total WU saves are
- 0.3 * (N-1) → Performing one search vs N Not sure if server performs the search just once, as constraints are the same, just like client-side does. It think it does not.
- 0.5 * N → Modifying N
Pets records for updating field LastWished
- 0.1 * (N-1) → Scheduling one API workflow vs N
1 Like