From 4061a2fb3b90d1949b5fbc74ac2ab3344a529e2d Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Wed, 2 Jun 2021 10:40:51 -0700 Subject: [PATCH] fix(parser): Use 'hotfix' for parser performance issue A performance issue in the Pelias Parser where certain inputs can cause long parse times and out of memory errors was [recently reported](https://github.com/pelias/api/issues/1530). This change implements a short term fix by disabling some functionality around unit number parsing that was contributing to the issue. From our analysis it's not so much that the unit number parsing _caused_ the issue, but it was the most recently added functionality that contributed to it. While we develop a longer term fix, which should allow us to keep unit number parsing around, this "hotfix" will keep everything running smoothly. Unit numbers are not yet fully supported by Pelias so there _shouldn't_ be any major loss in functionality. Fixes https://github.com/pelias/api/issues/1530 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 63ca7b395..d0bde14ef 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "pelias-logger": "^1.2.0", "pelias-microservice-wrapper": "^1.7.0", "pelias-model": "^9.0.0", - "pelias-parser": "1.53.0", + "pelias-parser": "pelias/parser#remove-unit-type", "pelias-query": "^11.0.0", "pelias-sorting": "^1.2.0", "predicates": "^2.0.0",