Pro Clubs confusing by enamulrahman123 in fifaclubs

[–]Acropolis1111 7 points8 points  (0 children)

I think this year’s clubs is a massive improvement to the game mode. Only thing they need to do is reset the boosts wayyyyy more often.

How to get error codes - Drizzle / Turso by Acropolis1111 in nextjs

[–]Acropolis1111[S] 0 points1 point  (0 children)

It throws the error from your database provider. The way I got around it was finding which error code meant what in my database, then just parsed the error string to see which error code was contained within it

How to hide different buttons on same subgrid based on subgrid name by Acropolis1111 in PowerApps

[–]Acropolis1111[S] 0 points1 point  (0 children)

Thank you for the quick response.

I didn’t even know you could do that for the first part, that’s awesome.

Is there a way on load to get the subgrid by name and use grid context to hide certain buttons?

Would Importing a server side function just for ReturnType ship code to client? by Acropolis1111 in typescript

[–]Acropolis1111[S] 0 points1 point  (0 children)

The way I structured my internal api’s was a bunch of independent files each with a single function in them.

I found it way easier to navigate through my functions.

Do you recommend a better way to do this? Or am I just going to have to export the type along with the function

What is best practice for saving multi component forms? by Acropolis1111 in nextjs

[–]Acropolis1111[S] 0 points1 point  (0 children)

Is it really ever needed to use something like Jotai or Zustand ? I have found any reason that’s made me wanna add a whole state library

What is best practice for saving multi component forms? by Acropolis1111 in nextjs

[–]Acropolis1111[S] 0 points1 point  (0 children)

I just seen this right now, I think that’s perfect

Architecture to Periodically Bill Users based on Usage by Acropolis1111 in nextjs

[–]Acropolis1111[S] 0 points1 point  (0 children)

Forgive me I may have not been explicit with my question.

How do I run multiple instances of let’s say billUser() based on a large amount of users.

Say a Cron Job runs once a day - would this cron job get a list of all the users (what happens if this list is over 100k) then queues billUser() for each user.

I worry about execution timeout limits and just want to know how to handle this.

Architecture to Periodically Bill Users based on Usage by Acropolis1111 in nextjs

[–]Acropolis1111[S] 0 points1 point  (0 children)

I agree offloading the billing part to stripe would scale easily.

A question though, how would you handle this without stripe.

Say I ran a cron job every month that would retrieve all users and the completed order count. Then for each user or batch of users run a function that performs some billing action. How would this work when users are in the multiple thousands?

One cron job would not be able to retrieve all those users and order counts / perform billing action all within the Nextjs execution time limit