Open sergibondarenko opened 7 years ago
@sergibondarenko you are right, this was a bug with how memdisk
interfaced with gun. I have fixed that specific problem in the latest commit on GitHub. Please review and let me know!
@amark I tried, now I get duplicates when I run the script multiple times. An issue similar to this one https://github.com/amark/gun/issues/454 but the number of results is not increasing, it is unpredictable.
trex@beast-cave:~/dev/cluster-job-queue$ node test_memdisk.js
Hello wonderful person! :) Thanks for using GUN, feel free to ask for help on https://gitter.im/amark/gun and ask StackOverflow questions tagged with 'gun'!
0.8 WARNING! Breaking changes, test that your app works before upgrading! The adapter interface has been upgraded (non-default storage and transport layers probably won't work). Also, `.path()` and `.not()` are outside core and now in 'lib/'.
WARNING! This `file.js` module for gun is intended for local development testing only!
j9zijzwsJhIMu2hXMqRU
{ _:
{ '#': 'j9zijzwsJhIMu2hXMqRU',
'>': { statistics: 1510657641099 } },
statistics: { '#': 'j9zijzwtbAjzx8sIjsK6' } }
j9zijskx03tH0Z7EBrrH363
{ _:
{ '#': 'j9zijskx03tH0Z7EBrrH363',
'>': { statistics: 1510657641103.001 } },
statistics: { '#': 'j9zijsky01agccDV3XyktB0' } }
j9zijskudVhfz6K5xmwK
{ _:
{ '#': 'j9zijskudVhfz6K5xmwK',
'>': { statistics: 1510657631597 } },
statistics: { '#': 'j9zijsku01aEdqLWBsPJSh3' } }
j9zijtoqwNKTxtVuswEb
{ _:
{ '#': 'j9zijtoqwNKTxtVuswEb',
'>': { statistics: 1510657633033 } },
statistics: { '#': 'j9zijtoq01ambomqXVEnOVy' } }
j9zijy84ipR7gzhtPv2I
{ _:
{ '#': 'j9zijy84ipR7gzhtPv2I',
'>': { statistics: 1510657638915 } },
statistics: { '#': 'j9zijy85SDeeIo267kMc' } }
trex@beast-cave:~/dev/cluster-job-queue$ node test_memdisk.js
Hello wonderful person! :) Thanks for using GUN, feel free to ask for help on https://gitter.im/amark/gun and ask StackOverflow questions tagged with 'gun'!
0.8 WARNING! Breaking changes, test that your app works before upgrading! The adapter interface has been upgraded (non-default storage and transport layers probably won't work). Also, `.path()` and `.not()` are outside core and now in 'lib/'.
WARNING! This `file.js` module for gun is intended for local development testing only!
j9zik152FAnebHG3i0ga
{ _:
{ '#': 'j9zik152FAnebHG3i0ga',
'>': { statistics: 1510657642693 } },
statistics: { '#': 'j9zik15201aUK4PjbXizZmG' } }
j9zik156NylAaARn1oHC
{ _:
{ '#': 'j9zik156NylAaARn1oHC',
'>': { statistics: 1510657642697.001 } },
statistics: { '#': 'j9zik15602jdnlSRalLEiCA' } }
^C
trex@beast-cave:~/dev/cluster-job-queue$ node test_memdisk.js
Hello wonderful person! :) Thanks for using GUN, feel free to ask for help on https://gitter.im/amark/gun and ask StackOverflow questions tagged with 'gun'!
0.8 WARNING! Breaking changes, test that your app works before upgrading! The adapter interface has been upgraded (non-default storage and transport layers probably won't work). Also, `.path()` and `.not()` are outside core and now in 'lib/'.
WARNING! This `file.js` module for gun is intended for local development testing only!
j9zik2a4tTMXoEhbZUvJ
{ _:
{ '#': 'j9zik2a4tTMXoEhbZUvJ',
'>': { statistics: 1510657644171 } },
statistics: { '#': 'j9zik2a401aoggKvT1HzPGR' } }
j9zik156NylAaARn1oHC
{ _:
{ '#': 'j9zik156NylAaARn1oHC',
'>': { statistics: 1510657644176.001 } },
statistics: { '#': 'j9zik15602jdnlSRalLEiCA' } }
j9zik152FAnebHG3i0ga
{ _:
{ '#': 'j9zik152FAnebHG3i0ga',
'>': { statistics: 1510657642693 } },
statistics: { '#': 'j9zik15201aUK4PjbXizZmG' } }
gun 0.8.9, Node.js-to-Node.js
When using memdisk I get
dinos.map().val(cb)
results only on the first run. There are no results when I run the script the second time, third ...Source code: