You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 - Extract the attached file and do npm install
2 - Run it once : npm start
3 - It will generate KV with 100k keys. If you notice, KV will initialize in no time in first run
4 - Once complete, run it again with npm start
5 - Notice that it will freeze here. Ideally, that line should not do anything with size of data.
import{Actor}from'apify';awaitActor.init();console.log(`store initialisation started. It will freeze here when you run this POC second time.`);conststore=awaitActor.openKeyValueStore('100k-keys');console.log(`store initialised successfull`);for(leti=0;i<100001;i++){awaitstore.setValue(`number-${i}`,"1");console.log(`storing ${i}`);}console.log('100k KV stored');awaitActor.exit();
A very painful dupe of #2248 ... It's really starting to bite our ass more and more because we cannot just preload everything without scanning the whole dir (or storing a metadata file mandatory)
1 - Extract the attached file and do
npm install
2 - Run it once :
npm start
3 - It will generate KV with 100k keys. If you notice, KV will initialize in no time in first run
4 - Once complete, run it again with
npm start
5 - Notice that it will freeze here. Ideally, that line should not do anything with size of data.
bottleneck-poc.zip
Originally posted by @dhrumil4u360 in #2722 (comment)
The text was updated successfully, but these errors were encountered: