It's time to start optimizing my queries! The first thing I wanted to do was reduce my products endpoint to use a single query with the features in an array. I was able to store all the features into individual objects using json_build_object. I then used array_agg to concatenate all these objects into the same array and attach the array to the product. I then started doing the same thing to my styles endpoint but am having difficulties.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)