Exploring the Efficiency and Performance of Lambda Functions in Xano
The theoretical possibility of Lambda becoming inefficient was also discussed: if a Docker container implies a large number of launch instances, this would bring inefficiencies due to the 'cold start' problem. It was suggested that for peak performance tweaks, lambdas should not be put inside loops, but rather to marshal the information separately and give it to the lambda, iterating over the lambda's return to keep it out of the loop.
Overall, identifying bottlenecks and addressing them was seen as a more effective optimization strategy. This would potentially involve a deep look into request history, prioritizing ones that are frequent and slow. Direct query optimization such as adding an index or avoiding queries inside loops can often unlock improved performance system-wide. The discussion emphasized that in a functioning system, there is always an element acting as the bottleneck to address. The idea of doing a deep dive on the subject of performance was proposed for future meetings.