problem with redis

65 views
Skip to first unread message

truepro

unread,
Sep 14, 2012, 10:40:57 AM9/14/12
to sha...@googlegroups.com
i used redis with sharejs.

sometimes my app crashes:

/var/www/proj/node/node_modules/redis/index.js:523
            throw err;
                  ^
TypeError: Cannot set property 'v' of null
    at module.exports.getOpsInternal (/var/www/proj/node/node_modules/share/src/server/model.coffee:173:16)
    at module.exports.RedisDb.getOps (/var/www/proj/node/node_modules/share/src/server/db/redis.coffee:81:16)
    at try_callback (/var/www/proj/node/node_modules/redis/index.js:520:9)
    at RedisClient.return_reply (/var/www/proj/node/node_modules/redis/index.js:590:13)
    at ReplyParser.RedisClient.init_parser (/var/www/proj/node/node_modules/redis/index.js:263:14)
    at ReplyParser.EventEmitter.emit (events.js:88:17)
    at ReplyParser.send_reply (/var/www/proj/node/node_modules/redis/lib/parser/javascript.js:283:10)
    at ReplyParser.execute (/var/www/proj/node/node_modules/redis/lib/parser/javascript.js:197:22)
    at RedisClient.on_data (/var/www/proj/node/node_modules/redis/index.js:476:27)
    at Socket.<anonymous> (/var/www/proj/node/node_modules/redis/index.js:79:14)
14 Sep 20:09:24 - [nodemon] app crashed - waiting for file changes before starting...

any idea whats wrong ? :S

truepro

unread,
Sep 14, 2012, 11:19:20 AM9/14/12
to sha...@googlegroups.com
sometimes i clear data from redis, using redis-cli

yet on refresh it fetches the collaborated data, anyone else faced something similar ?

truepro

unread,
Sep 14, 2012, 11:36:51 AM9/14/12
to sha...@googlegroups.com
One more thing, the cm.js in the share repo has some problem, i cant say what.

sometimes on text removal, for example if I remove everything it messes up.

while codeshare version seems work great always...
Message has been deleted

truepro

unread,
Sep 15, 2012, 10:00:15 AM9/15/12
to sha...@googlegroups.com
i notice when using mongodb it creates a collection for each document. would you call that an optimized and performant approach ?

Axel Kittenberger

unread,
Sep 15, 2012, 10:51:13 AM9/15/12
to sha...@googlegroups.com
> i notice when using mongodb it creates a collection for each document. would
> you call that an optimized and performant approach ?

yes
Reply all
Reply to author
Forward
0 new messages