Cut the local runtime from 5+ hours to closer to two.
The changes may be more noticeable on the server as it has to go over the wire for the database.
Changes
1) Insert ZipCodes for addresses in bulk
This was being done row by row and due to the large amount of zip codes was still taking some time
2) Cache larger lookups in memory.
The variable containing the large lookup (1390000 records) seem to be pretty well optimized in memory but take a few minutes to load.
Summary
Cut the local runtime from 5+ hours to closer to two. The changes may be more noticeable on the server as it has to go over the wire for the database.
Changes
1) Insert ZipCodes for addresses in bulk This was being done row by row and due to the large amount of zip codes was still taking some time
2) Cache larger lookups in memory. The variable containing the large lookup (1390000 records) seem to be pretty well optimized in memory but take a few minutes to load.
Testing info:
Tested on performance-2xl dyno