We used to use connections in the application, not in the database, sometimes in the 80s. But in fact, by 1988 or so, the database optimizer was usually pretty good with DB2, which is no longer needed.
I cannot think of any ordinary scripts that guarantee application attachment. Abnormal situations, for example, when you have a overloaded database server, a bold network channel, a ton of capacity on the application server and many new queries, may require it for some queries. May be.
But overall, joins, including left / right / full external join, are your friend. They allow you to have smaller tables, it is better to use them both from storage and from memory, etc. But you want to get up-to-date statistics to familiarize yourself with the types of access paths that the database uses, and are used to doing explains.
source share