Skip to content
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

stream features? #129

Open
smnorris opened this issue Nov 14, 2022 · 1 comment
Open

stream features? #129

smnorris opened this issue Nov 14, 2022 · 1 comment

Comments

@smnorris
Copy link

Running pg_fs on a server with very limited resources, I often get the dreaded pg_featureserv invoked oom-killer when a user requests a dense collection (well under the 10k record limit but lots of vertices per feature).

I can tell users that requesting huge chunks of geojson is inefficient and not a great idea. And maybe bump up my server memory resources to handle some use cases.

But I wonder, could pg_fs stream the features instead of loading them all into memory?

@pramsey
Copy link
Collaborator

pramsey commented Nov 14, 2022

Short answer, yes? Should be able to do prepare/execute/fetch in the SQL loop ... only open question is to what extent this is already supported in the pq library we're using. Do we have to manually plumb it out, or can we just flip a switch to a smaller fetch size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants