Closed almccon closed 8 years ago
Between 04bfea88 and the index on nhgis_join
that I added (CREATE INDEX idx_site_foreignborn_county_breakdowns_materialized_nhgis_join ON site_foreignborn_county_breakdowns_materialized (nhgis_join)
), selecting a new county is between 2 and 3x faster.
@almccon Any selections I'm missing that should be speedier?
Wow, feels much faster to me! So you didn't need to remove the RTRIM()
then, and just improved it with the index?
@almccon I did both removing RTRIM()
and adding the index, but the index is the big improvement here. I'm not sure if the RTRIM
-less version is live, but it's slightly quicker.
Closed?
I'd be okay with closing it, @almccon do you think it's quick enough now or is there anything else I should look at?
I've found that changing the query on this line by removing
RTRIM()
makes the query ~2x faster, which makes the transition happen that much faster when clicking on counties.Is this something we can take care of on the table itself (
UPDATE
ingnhgis_join
withRTRIM(nhgis_join)
)? I'd be curious to also try adding an index on thenhgis_join
column to see how that affects response time.