If I needed to do a left join between 2 tables (in order to run some kind of analysis between them), but both datasets are too large for this to be executed in a single query, what's the best practice to accomplish this?
I saw FETCH in the documentation but wasn't sure if this is conventionally used to loop over entire datasets. Since I figured this task had to be commonplace, I wasn't going to kill myself trying to improperly hodgepodge FETCH or OFFSET in order to accomplish my analysis.
Note: This is a local database, and will not be altered through the duration of the procedure - so performance considerations and transactions aren't a factor.
I'm using PostgreSQL, but I'm sure the practice is similar across all modern DBMS.