https://betterprogramming.pub/how-selecting-the-correct-query-reduced-a-lambda-function-memory-usage-by-85-d9f74d12b301