![SQL to get Products and related data from PostgreSQL](/_gatsby/image/891dc58bb50c4cacb21c5c3626c72a88/a78df2a364c40f17589d825287e40c20/Heroku-PostgreSQL.png?u=http%3A%2F%2Fwp.docker.localhost%3A8000%2Fwp-content%2Fuploads%2F2021%2F05%2FHeroku-PostgreSQL.png&a=w%3D200%26h%3D150%26fm%3Dpng%26q%3D75&cd=94952eb2ad3ee7e988b3dfd6478bb81c)
SQL to get Products and related data from PostgreSQL
3 years ago, October 19, 2021
The objective of this exercise for me was to dump all the product data as CSV / JSON so I could index them into Algolia. The exercise consisted of multiple steps to get to the required form of data. I will run through all those steps and explain what is happening.