Barış Soner Uşaklı
749ce5f8e5
dont crash if callback isnt supplied to list methods
10 years ago
barisusakli
39cac43b96
if key isn't found dont error
...
Conflicts:
src/database/redis/main.js
10 years ago
barisusakli
bd8a77a22b
dont crash if callback isnt passed in
10 years ago
barisusakli
2c45dc6450
redis helpers
10 years ago
barisusakli
c379753341
upgrade scripts
...
upgrade groups to sorted set(groups:createtime) upgrade
upgrade groups:<name>:members to sorted set
new database methods
tests
10 years ago
barisusakli
96c27d29f4
dont crash if callback isn't supplied
10 years ago
barisusakli
4c62590bc8
closes #2628
10 years ago
Julian Lam
eb5b8ccec3
better check for group exist, groups with different cases can no longer be created, #2588
10 years ago
barisusakli
f67053df52
figure out pathname, dont crash if callback isnt supplied
10 years ago
barisusakli
fbd875b397
fix sortedSetIncrBy return
10 years ago
barisusakli
0a534b20e3
sortedSetCount fix for +inf/-inf
10 years ago
barisusakli
03ee524121
fix tests and mongo method
10 years ago
barisusakli
00541b2bc8
sortedSetRange tests
10 years ago
barisusakli
4d5ed784a1
more hash tests
...
getObjectValues
isObjectField
deleteObjectField
incrObjectField
10 years ago
barisusakli
c62e7ed641
list test fix
10 years ago
barisusakli
3e8c29e5f9
list tests
10 years ago
barisusakli
1cbf5ddfe9
only send back err on redis.deleteAll
10 years ago
barisusakli
7cf3719c80
fix rename and increment
10 years ago
barisusakli
410d9fa4fa
fix more tests
10 years ago
barisusakli
bf54859a27
key tests
10 years ago
barisusakli
37235557bb
fix callback in redis.setRemove
10 years ago
barisusakli
00fb3ab909
only send back error for sortedSetsRemove
10 years ago
barisusakli
cd41e192d1
closes #2546
10 years ago
barisusakli
2f8e6a1f2b
closes #2458
10 years ago
barisusakli
984b17349a
closes #2476
10 years ago
barisusakli
c0c85c24cf
duh strings dont work
10 years ago
barisusakli
7cbaa90d36
update to socket.io 1.2.1, return_buffers option
10 years ago
barisusakli
73fb653ddf
emit works
10 years ago
barisusakli
81e4bcd358
fix rename to multi
10 years ago
barisusakli
671ec8532c
fix unfavourite
10 years ago
barisusakli
1d2d69fa45
use helpers, redis crash fix
10 years ago
barisusakli
0a44d3f5e0
moved updateCategoryField out, db.delete only sends back err
10 years ago
barisusakli
c56b9aafff
closes #2289 , replace Infinity with '+inf'
10 years ago
barisusakli
9440f8f8cd
#2344
10 years ago
barisusakli
1fe82ee452
added 2 new methods to dbal
...
getSortedSetRangeWithScores
getSortedSetRangeByScoreWithScores
10 years ago
barisusakli
0bb0424998
bubble error
10 years ago
barisusakli
1b80e6dbb2
fix email update on mongo
10 years ago
barisusakli
fec84821b7
removed this wasn't the problem after all
10 years ago
barisusakli
df590d01e6
set key as well
...
not sure if this fixes dupe keys
10 years ago
barisusakli
9e8be432b3
notification changes
...
-only send a notification when the person you follow creates a topic
-you still get a notification per post if you are following a topic
-changed notifications.push so that it sends the notifications over a
period of time, currently to 50 users per second
-optimized topics.notifyFollowers and
user.notifications.sendTopicNotification, they no longer query the
database for the topic and post data instead they get it as params
-you can no longer follow yourself :)
-changed mongo sortedSetRemove so that it doesn't use $in if there is
only a single value to remove
10 years ago
barisusakli
90224d2de3
removed unique for now
10 years ago
barisusakli
f2883c2c9f
createIndex helper
10 years ago
barisusakli
1be6a253bf
make _key value index unique
10 years ago
barisusakli
b65c17c5bc
parseInt score
10 years ago
barisusakli
e699c02b65
get less data
10 years ago
barisusakli
10ead05d4b
another unused require
10 years ago
barisusakli
8cc1cc0f1b
removed unused require
10 years ago
barisusakli
1eb95a71ae
no need for $in
10 years ago
barisusakli
feed33f6e2
closes #2100
10 years ago
barisusakli
035c32df66
dont need to pass value on upserts
10 years ago
psychobunny
b42e57bfdd
removing leveldb from our dbal
...
a) It isn't being maintained, especially not by me
b) I haven't seen anybody actually interested in this db software so
there's no real point in supporting it unless we have a few people who
are interested
If you ARE interested though - please contact me and we can figure
something out in future :)
10 years ago
psychobunny
f149fb0191
linting, TIL that obj.$key is valid syntax
10 years ago
barisusakli
5db24fbe68
closes #2175
10 years ago
barisusakli
740c336480
typo
10 years ago
barisusakli
dba20160ce
check length
10 years ago
barisusakli
33780e6fdb
closes #2133
10 years ago
barisusakli
73d358edc5
faster getTeasers
...
got rid of getPostIndices
10 years ago
barisusakli
c72c876b04
check value
11 years ago
Julian Lam
4c70a0da4f
removing postgres file from databases/
11 years ago
Julian Lam
24ac7ba316
better templating and styling for #2099
11 years ago
Julian Lam
f082849126
removing console.log
11 years ago
Julian Lam
43db2289c2
moving db selection into db.connect, where it should be
11 years ago
barisusakli
31db0d78b1
return empty array instead of undefined
11 years ago
barisusakli
3865fd3ab9
fixes crash is sets is empty
11 years ago
Julian Lam
625247611b
closed #1959
11 years ago
barisusakli
e8dc9fed3c
remove unnecessary index
...
the _key:1 score:-1 index already handles reverse sorting on score
11 years ago
barisusakli
212e15b2c2
fixin redis zrevrangebyscore to return value score
11 years ago
barisusakli
34106aa209
fix fields
11 years ago
barisusakli
5fc760c6c4
unread changes
11 years ago
barisusakli
9d25772b53
added sortedSetIncrBy
11 years ago
barisusakli
176023d712
read poolsize from config
11 years ago
barisusakli
c5f9a8a111
increase poolSize to 10 from default 5
11 years ago
barisusakli
c5c97c784a
optimize getPostIndices
...
only use 1 set when its in a topic
11 years ago
Julian Lam
3554887f10
back to using redis.auth
11 years ago
Julian Lam
5a36c33fac
fixed #2142 -- passing in cached (pre-required) redis module into socket.io so it uses the same redis module... why? who bloody knows.
11 years ago
Julian Lam
ecea917d11
closed #2097 -- NodeBB will prefer using Redis as session store if at all possible
11 years ago
Julian Lam
20819e3dfd
Revert "use redis session storage instead of connect-mongo"
...
This reverts commit 056f89d6cf
.
11 years ago
Julian Lam
f41be4ae8b
exposed redis' "connect" method, so socket.io can call it from outside database/redis.js, fixed NodeBB requiring Redis as a socket.io store. It will now go back to using in-memory store per process, if no redis config is found in the NodeBB configuration. re: #2097
11 years ago
barisusakli
b1f492dec3
fix redis bulk zadd
11 years ago
barisusakli
515e663f85
getObjectsFix
...
return empty array if keys is empty or not an array
11 years ago
barisusakli
c640e01969
show stack
11 years ago
barisusakli
5f2a66295c
check keys
11 years ago
barisusakli
7d93926ef7
removed async.map
11 years ago
barisusakli
e2707353e9
dont return unnecessary data
11 years ago
barisusakli
59120df71c
bulk fix
11 years ago
barisusakli
1bad2f79ee
show megabyte values
11 years ago
barisusakli
4b80bbb9c4
optimized user.delete
11 years ago
barisusakli
451c5b40fd
removed debug
11 years ago
barisusakli
0a936e5dd1
unreadTids
11 years ago
barisusakli
31eccb8e7f
configurable post delay before first post
11 years ago
barisusakli
b3d9db10f2
notification fixes
...
made post notifications unique per post so they dont overwrite other
types.
11 years ago
barisusakli
35a903f9c8
closes #2074
...
when new notifications are pushed to uids clear their old notifications.
11 years ago
barisusakli
493d0dea1e
part 1 of notif refactor
11 years ago
barisusakli
01f983e29c
markAsRead improvement
...
takes in an array of tids instead of marking topics read 1 by 1
same for the category.markAsRead function
11 years ago
barisusakli
5222edb624
sortedSetsAdd
...
using mullti/bulk for redis/mongo
lets you add a score/value pair to multiple sorted sets at once
11 years ago
barisusakli
ec32a3d243
mising reuqire
11 years ago
psychobunny
0727c2a0bf
forgot winston
11 years ago
barisusakli
2252ab7479
notifications.prune
...
run every hour
dont get more than 500 notifications
11 years ago
barisusakli
fe58ea55d4
moved debugs 1 level up increased key limit to 100
11 years ago
barisusakli
3f4ede0778
parseInt
11 years ago