I have two databases
DB1 - postgres on server 1
DB2 - mysql on server2
- getting userids from DB2 from user_address table
- passing userid to DB1 to user table and fetch user details
- iterate step 1) data and assign user details based on user ids
How do I optimize my code to skip iteration in step3?
select * from user_table where id in (select id from mysql_fdw_table)
– a_horse_with_no_name 17 hours ago