-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Postgresql settings and raster performance #80
Comments
Try the following:
From https://www.enterprisedb.com/postgres-tutorials/how-tune-postgresql-memory
|
FYI @COBrogan @mwdunlap2004 - The system database settings had ZERO effect (see results above), but after clipping, time to process these basic land segment summaries was cut in half. |
It is amazing to think so many of our slow run times can be connected to us just trying to use the entire globe in all of our functions, but it's really good to see that we seem to have a solution to that issue. I wonder how many of our assumptions about run time can be reevaluated based off this, like our statement about st_resample being slow. |
@mwdunlap2004 Hundred percent agree. I expect some important improvements across the board. |
Also @mwdunlap2004 Without the breakthrough on extents with yesterdays TIFF exports, I'd not have even messed with this, and found the efficiency increase. |
Comparison Summary
Time: 65521.824 ms (01:05.522)
33915.735 ms (00:33.916)
Time: 875047.339 ms (14:35.047)
Time: 68054.561 ms (01:08.055)
Time: 1483813.021 ms (24:43.813)
SET work_mem = 'XXmb
;` to change config for current connectionALTER SYSTEM SET work_mem...
to change config semi-permanentlypostgresql.auto.conf
which persists until removed by adminSET...
commands go into effect must callSELECT pg_reload_conf();
ALTER SYSTEM RESET ALL; SELECT pg_reload_conf();
to restore default settings (undoes previousALTER SYSTEM ...
commands)Set Up Base Table and Timer function
Change Working memory
Test with 5-year Sample
5-years, 1 landseg, with clip after resample
daymet
res, then clip to landseg bounds again.st_clip()
is simply to avoid the out of memory error because PRISM extent is wonky.st_resample()
might be more memory intensive that previously thought?Just Clip for testing
Just resample for testing
Two landsegs at the same time
Time: 875047.339 ms (14:35.047)
The text was updated successfully, but these errors were encountered: