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

Many wfs_ files in /tmp #2248

Open
laurentj opened this issue Apr 21, 2021 · 3 comments
Open

Many wfs_ files in /tmp #2248

laurentj opened this issue Apr 21, 2021 · 3 comments
Assignees
Labels

Comments

@laurentj
Copy link
Collaborator

What is the bug?

There are tons of files into /tmp/ with name starting with wfs_.

Expected behavior

No wfs_ files into tmp, or at least, only few.

The responsible is WFSRequest::getfeaturePostgres() which create such files.

A comment in the code of this methods says it creates the file to avoid memory issues, but later in the code of Lizmap, the content of this file is readed and then json_decode is applied, so i'm not sure the memory issue could be avoid.

@laurentj
Copy link
Collaborator Author

At least, the file should be deleted after reading it.

@mdouchin
Copy link
Collaborator

NB: during the discussion, we also think a finding a better way to parse big JSON content
https://nenadzivanovic.in.rs/blog/2020/05/28/using-php-streams-to-encode-and-decode-large-json-collections/

@Gustry
Copy link
Member

Gustry commented Jul 18, 2023

I think we did something in this area, no ?

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

No branches or pull requests

3 participants