Do I need to manually add indexes on foreign key columns when working with PostgreSQL?
Hello,
Here's example schema:
As you can see I have
orderItems
table which contains productId
, orderId
and colorId
column, which are all foreign keys. Now my question is: Are those columns automatically indexed or do I need to manually add indexes, as shown in code below?
0 Replies