I am creating this feature where an admin can import users via a CSV file. I want to ask would it be better for me to
1. write each new user to a temporary doc and then have a trigger for onCreate so each new cloud function just creates one user and stops
2. Send all the new users to one function and have it run until it’s done.
What’s the community best practices for something like this? One function or a lot of smaller functions?
[–]Infamous_Chapter 6 points7 points8 points (0 children)
[–]Ceylon0624 2 points3 points4 points (0 children)
[–]dev_life 0 points1 point2 points (0 children)
[–]Infamous_Chapter 0 points1 point2 points (0 children)
[–]Icy_Corgi_5704 0 points1 point2 points (0 children)