Execute with conditionals

Trying to figure out what is best practice in wappler.

I currently have 5 server side actions and each of these has a corresponding server connect.

  1. Pulls all open tickets.
  2. Pulls all overdue tickets.
  3. Pulls all tickets by user id.
  4. Pulls all closed tickets.
  5. Pulls all tickets by date opened.

Would it be better to move these server side API actions to the library, and create one api with conditionals that cause the correct library action to execute? 5 Server actions and 5 server connects is going to slow this app down quite a bit once load in all the production data.

Community Page
Last updated: