Skip to content

Issue #50: Major refactoring & Added option to increase memory limit#51

Merged
arhimede merged 3 commits into3.0from
issue-50
Dec 2, 2025
Merged

Issue #50: Major refactoring & Added option to increase memory limit#51
arhimede merged 3 commits into3.0from
issue-50

Conversation

@alexmerlin
Copy link
Member

What started out as a small feature implementation ended up being a major refactoring.

Let me know if I should split the PR into just the memory limit feature implementation and a different PR with the refactoring.

Key changes:

  • replaced guzzlehttp/guzzle (used for downloading database archives) with own curl-based implementation
  • replaced laminas/laminas-filter (used for extracting database archives) with own implementation using native PHP functions
  • replaced symfony/filesystem (used for creating/deleting database files) with own implementation using native PHP functions

Note

After the refactoring, the memory limit feature is not quite necessary anymore, because I was able to lower the memory consumption of the geoip:synchronize command down to just 8M

Note

Default memory limit is not set to 128M

Added option to increase memory limit

Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
Added option to increase memory limit

Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
@alexmerlin alexmerlin self-assigned this Dec 2, 2025
@alexmerlin alexmerlin linked an issue Dec 2, 2025 that may be closed by this pull request
Added option to increase memory limit

Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
@alexmerlin alexmerlin requested a review from arhimede December 2, 2025 09:56
@arhimede arhimede merged commit d1ff53b into 3.0 Dec 2, 2025
37 of 38 checks passed
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

Successfully merging this pull request may close these issues.

Increase memory_limit in the database sync command

2 participants