https://linen.dev logo
#general
Title
# general
m

Mykyta Zemliakov

10/23/2023, 9:10 AM
Hi all 👋 I'm creating a dynamic mock for request where I send and ID and want to receive in response valid for this ID sub-IDs. For this I use in body file
{{#parseJson 'idsMap'}}{"123AAA": [["123", "456", "789", "1011", "123123"],["000", "001", "002", "003", "004"]]...}{{/parseJson}}
map and then a couple of '#each' loops. The problem is that initial map is quite big (11k keys) and mock container consumes a lot of CPU. Could you please suggest a way to handle this problem and decrease CPU usage
t

Tom

10/23/2023, 5:59 PM
Is there a way you could break this up into multiple stubs with smaller data ranges in each?
4 Views