As I understood from this post, there are some scenarios where foreign keys can improve query performance.
I\'ve heard the opposite claim though, that because of refere
Foreign keys will not adversley affect query performance in most cases, and are strongly recommended. By aiding normalization, you will eliminate redundant data, and if you follow up by adding underlying indexes (for the appropriate foreign key) you will get good performance on your queries.
Foreign-keys can help the query optimizer get the best query plans for a given query.
Foreign-key checking is a factor when you update your data (which is a separate consideration - I assume here your concern is query - unless by the word query you imply both).