barisusakli
31eccb8e7f
configurable post delay before first post
10 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
barisusakli
017f6bde2c
50
11 years ago
psychobunny
056f89d6cf
use redis session storage instead of connect-mongo
11 years ago
barisusakli
e2697030ec
removed reuqire
11 years ago
barisusakli
a48e95b910
check keys
11 years ago
barisusakli
c62f251afc
added index and fixed vote button in infinite scroll
11 years ago
barisusakli
45afe2e831
cast return to bool
11 years ago
barisusakli
c8692f0562
Merge remote-tracking branch 'origin/0.5.1' into cluster
11 years ago
barisusakli
f81acd37db
added indices on search key and id for mongo
11 years ago
barisusakli
84d0e64361
fix topic move
11 years ago
barisusakli
10b30e303b
mongo posting fix
11 years ago
barisusakli
94d050fd4f
removed helpers.done
11 years ago
barisusakli
8b4c61241f
query change
11 years ago
barisusakli
0c8c6632d9
create index on key value
11 years ago
barisusakli
487793e692
create index on score field
11 years ago
barisusakli
cd096f8832
sortedSetScores for tag counts
11 years ago
barisusakli
e10eaf0d50
added tag counts to api return
11 years ago
barisusakli
c358ff3d83
fix isSortedSetMembers on mongo
11 years ago
barisusakli
5e68e0b009
same deal as previous commit
11 years ago
barisusakli
e137baccd9
fixed ip:recent weird
11 years ago
barisusakli
528ee335d5
optimize getTopicsByTids and getTeasers
11 years ago
barisusakli
b4182f57fe
simplified callback
11 years ago
barisusakli
efdd795084
closes #1922
11 years ago
barisusakli
eeb4c9f487
optimize getPostSummaryByPids
11 years ago
barisusakli
1a68fe5a26
possible fix for #1909
11 years ago
barisusakli
68cf064b1e
cleaned up a bit
11 years ago
barisusakli
d0a0d02d31
mongodb list fix
11 years ago
barisusakli
d7520508e3
#1375 part1
11 years ago
psychobunny
60e74cc2c3
LTRIM support for mongo
11 years ago
psychobunny
7327730252
LTRIM support for redis
11 years ago
barisusakli
3829019bfa
removed optional params
11 years ago
barisusakli
8dce99250b
final fix for #1884
...
fix mongo functions so they return correct data if duplicate keys are
passed. getObjects(['post:1', 'post:1'], callback) was only returning
one object.
11 years ago
barisusakli
a3fecee781
removed console.log err check
11 years ago
barisusakli
89bb11a58c
closes #1880
11 years ago
barisusakli
d00740703b
use the new $text query from mongo 2.6
11 years ago
barisusakli
9d7a8fcc0b
getSortedSetRevRangeWithScores
11 years ago
barisusakli
b5df5c0a91
closes #1562 , level session
11 years ago
barisusakli
53d68be7c0
level sortedSetsRemove
11 years ago
barisusakli
37b73e1c02
cleaner mongo setRemoveRandom
11 years ago
barisusakli
38494a2af0
pass in session directly
11 years ago
barisusakli
24ebf20d7e
first commit
11 years ago
barisusakli
9aacb5e259
remove dupe code
11 years ago
barisusakli
c3a9767bf6
late night optimizations
...
-isMemberOfSets returns true/false instead of 1/0
-when loading the posts of a topic only get the userdata for each user
once, before this commit if a topic had 10 posts from 2 different users
we were getting the user data for each user 5 times (drunk)
-getVoteStatusByPostIDs and getFavouritesByPostIDs no longer make
pids.length calls to the db, they use isMemberOfSets now
-getUserInfoForPost renamed to getUserInfoForPosts and doesnt make
uids.length calls to db, uses getMultipleUserFields instead
11 years ago
barisusakli
d3fc71529a
callback
11 years ago
barisusakli
f80b3c3b66
simpler union
11 years ago
barisusakli
7f534cc7b8
sorted set refactor
11 years ago
barisusakli
e6d8e9c959
searchIndex callbacks
11 years ago
barisusakli
fd12ec763a
sortedSetsRemove
...
instead of calling sortedSetRemove() one at a time for each id remove
value from multiple sortedSets with one db call
11 years ago
Charles
90b2d766f7
Fix callback execution in redis search
...
`callback` should be passed to `reds.search` otherwise the execution will be overlapped.
For example in the plugin `nodebb-plugin-dbsearch':
```javascript
db.searchRemove('topic', tid, function() {
if (typeof title === 'string' && title.length) {
db.searchIndex('topic', title, tid);
}
if (typeof callback === 'function') {
callback();
}
});
```
The actual execution is like this
```
1402387863.625553 [0 127.0.0.1:16660] "zrevrangebyscore" "nodebbtopicsearch:object:6" "+inf" "0"
1402387863.625891 [0 127.0.0.1:16660] "MULTI"
1402387863.626043 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:word:123" "1" "6"
1402387863.626052 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:object:6" "1" "123"
1402387863.626060 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:word:TST" "1" "6"
1402387863.626065 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:object:6" "1" "TST"
1402387863.626071 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:word:AN0" "1" "6"
1402387863.626076 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:object:6" "1" "AN0"
1402387863.626083 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:word:TPK" "1" "6"
1402387863.626092 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:object:6" "1" "TPK"
1402387863.626104 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:word:ETTT" "1" "6"
1402387863.626116 [0 127.0.0.1:16660] "zadd" "nodebbtopicsearch:object:6" "1" "ETTT"
1402387863.626130 [0 127.0.0.1:16660] "EXEC"
1402387863.626253 [0 127.0.0.1:16660] "del" "topic:6:tags"
1402387863.626281 [0 127.0.0.1:16660] "MULTI"
1402387863.626515 [0 127.0.0.1:16660] "del" "nodebbtopicsearch:object:6"
1402387863.626524 [0 127.0.0.1:16660] "EXEC"
```
The key nodebbtopicsearch:object is added and then just being deleted again.
11 years ago
Julian Lam
584fe60284
fixed #1554 , redis error handling will go back to crashing the error (though the error will be logged at least)
11 years ago
Julian Lam
b1eb5b175c
Merge remote-tracking branch 'origin/master' into groups-pages
...
Conflicts:
src/topics/tags.js
11 years ago
barisusakli
b7fcde446b
proper score aggregation #1562
11 years ago
barisusakli
7585b72644
remove duplicates
11 years ago
barisusakli
b32bb76429
#1562
11 years ago
Julian Lam
7afe3bea59
added getSortedSetRevUnion... just because.
11 years ago
Julian Lam
6e597a9cdb
fixed tests, and added getSortedSetUnion method to redis db, added test for new redis method
11 years ago
barisusakli
746df87d89
upgrade tags to sorted set
11 years ago
Julian Lam
e64c1bfec3
closed #1453
11 years ago
Julian Lam
bab140c396
added pexpire and pexpireAt methods for redis and mongo. Added emoticons for leveldb (as per existing implementation by @psychobunny LOL)
11 years ago
barisusakli
5f7ed289de
print stack on db error
11 years ago
barisusakli
90f5683cc2
read redis host just before connecting
11 years ago
barisusakli
6a1fa82b8b
closes #1402
11 years ago
psychobunny
7a823283e4
fixed my derp
11 years ago
psychobunny
f892a6793a
mongo/redis - don't show passwords when typing in CLI
11 years ago
psychobunny
268be5f35c
fixed LevelDB helpers
11 years ago
psychobunny
71d33c0a79
fixed mongo helpers
11 years ago
psychobunny
8a1f6eb43e
forgot to export helpers as well for secondary db
11 years ago
psychobunny
290e348851
move database helpers into their own files
11 years ago
psychobunny
bba3df6802
moving db.close into the parent module
11 years ago
psychobunny
df5f3d185a
don't attempt to initialize db until we attempt to initialize
11 years ago
psychobunny
74674c8494
Merge remote-tracking branch 'origin/master' into secondary_database
...
Conflicts:
src/database/level/main.js
11 years ago
psychobunny
a7582e2cca
organized level helpers ala mongo driver
11 years ago
psychobunny
46b6a93e98
organizing mongo driver
11 years ago
psychobunny
9ad7ce9ca8
organizing redis driver
11 years ago
psychobunny
e09b156d13
removing unnecessary return
11 years ago
psychobunny
c86635b4ce
making changes for compatibility with 9d405812cb
11 years ago
psychobunny
136542f8dd
Merge remote-tracking branch 'origin/master' into LevelDB
...
Conflicts:
tests/database.js
11 years ago
psychobunny
f5716de06e
forgot to use the passed in fn
11 years ago
psychobunny
2acdcd9ba2
more cleanup
11 years ago
psychobunny
4d65a51ede
LevelDB - organization
11 years ago
psychobunny
5bac03a37b
removed newline
11 years ago
psychobunny
cbec5cd3a1
cleanup
11 years ago
psychobunny
21cb2c384e
woo, NodeBB actually works on LevelDB
11 years ago
barisusakli
1e3b88a7f0
passing array straight to redis
11 years ago
barisusakli
9d405812cb
changed sortedSetRangeByScore
11 years ago
psychobunny
129019777f
move work on LevelDB
11 years ago
psychobunny
e79284e75f
LevelDB init
11 years ago
barisusakli
e11efad0b7
added getSortedSetRangeByScore
11 years ago
barisusakli
7b409c095c
mongo callback refactor
11 years ago
barisusakli
4f72513f19
removed keys
11 years ago
barisusakli
6eff7d4c51
mongo cleanup
11 years ago
barisusakli
76037a5f14
closes #1191
...
added a new method called isSetMembers takes in an array of values to
test if they are members of a set
11 years ago
barisusakli
3d68c7c6b6
added getObjectsFields methods to db class, changed getUsers methods to use the new method, refactor to user.js and mongo.js
11 years ago
barisusakli
71f84655ca
minor cleanup
11 years ago
barisusakli
57f9f8bc57
closes #1176
11 years ago
barisusakli
23e1cc010c
removed removeHiddenFields function, using mongo selector instead
11 years ago
Baris Soner Usakli
d34e68ca25
convert score to int in mongo
11 years ago
Baris Soner Usakli
da0e1a8eb9
added back err to redis flushdb
11 years ago
Baris Soner Usakli
4986c8ed3a
fixed tests
11 years ago
Baris Soner Usakli
37aeda14c4
fixed email retrieval in mongo
11 years ago
Baris Soner Usakli
87f337f2fb
cleanup
11 years ago
Baris Soner Usakli
fff3ba5bec
hinted redis.js
11 years ago
Baris Soner Usakli
3958ee4120
added close db command
11 years ago
Baris Soner Usakli
de34beaf6d
closes #1087
11 years ago
Baris Soner Usakli
eb3b240b04
some cleanup of unread
11 years ago
Baris Soner Usakli
ae93c372ff
fixed mongo setAdd and setRemove to accept arrays like redis, fixed infinite scroll for mongo
11 years ago
Julian Lam
a2942e22cc
Revert "removing exported search methods from redis and mongo"
...
This reverts commit bba3b76108
.
11 years ago
Julian Lam
bba3b76108
removing exported search methods from redis and mongo
11 years ago
Baris Soner Usakli
1e44ca3a0f
upgrade topics:tid to sorted set, topics:recent doesnt have deleted topics
11 years ago
Baris Soner Usakli
a909a25393
closes #1016
11 years ago
Baris Soner Usakli
c78942b7a4
added warnings if no pwd setup for db, #936
11 years ago
Baris Soner Usakli
917458d48d
minor cleanup
11 years ago
Baris Soner Usakli
b2d3578eac
check if callback is function
11 years ago
Baris Soner Usakli
dedf4add53
better incr for mongo
11 years ago
Julian Lam
8ac7ccb4f8
calling auth immediately after client connection (apparently, not doing so throws errors on install?)
11 years ago
Baris Soner Usakli
9fbd5ed596
removed unused function
11 years ago
Baris Soner Usakli
da626a4035
more fixes
11 years ago
Baris Soner Usakli
606367701f
pagination on posts
11 years ago
Baris Soner Usakli
bc1cde38da
added getObjectKeys for julian :)
11 years ago
MrWaffle
e4d8ddcf1b
Add callback to mongo.removeSearch, fixes infinite schema update
11 years ago
Baris Soner Usakli
84cbcc5a97
closes #798
11 years ago
Julian Lam
a48a7acd51
fixing issue where after a user changed their username, the new name was not reindexed by Reds
11 years ago
Baris Soner Usakli
dcf47f558e
limit search in db
11 years ago
Baris Soner Usakli
bbcc2312db
better redis info parser from node-redis
11 years ago
Baris Soner Usakli
bc835f59d4
mongo getListRange fix
11 years ago
Baris Soner Usakli
be316ff602
fixed mongo listRemoveAll
11 years ago
Baris Soner Usakli
dfc8aacbae
closes #735 , removed create collection calls
11 years ago
Baris Soner Usakli
cd6750a38d
minor fix
11 years ago
Baris Soner Usakli
f21a98f37f
first pass, #524 , #667
11 years ago
Baris Soner Usakli
fd88aff195
mongo string fix
11 years ago
Baris Soner Usakli
438f90d859
expire functionality in dbal
11 years ago
Baris Soner Usakli
a974c6fa99
possible fix for mongo crash
11 years ago
Baris Soner Usakli
b504e2cd11
closes #658
11 years ago
Baris Usakli
5da4cead67
closes #631
11 years ago
Baris Usakli
0000a7f0b9
#631
11 years ago
psychobunny
090d35f306
clean up conditional comments in the DOM; conditionals now treat undefined variables as false; closes #617
11 years ago
Baris Soner Usakli
be6ed43223
removed the setName from sorted sets and stored them with _key like everything else
11 years ago
Baris Usakli
ab63ca6d92
store strings in sorted sets and lists to mimic redis
11 years ago
Baris Usakli
400845ce6c
cleanup mongo init
11 years ago
Baris Usakli
351b07bb34
added authentication to mongo
11 years ago
Baris Usakli
f861d44d55
updated upgrade script to use mongo or redis
11 years ago
Baris Usakli
0da141e7bc
removed redismock, added database mocked, fixed tests to work with dbal
11 years ago
Baris Soner Usakli
5f86e31d1e
fixed favouriting
11 years ago
Baris Soner Usakli
746119bd45
remove dataFileVersion it breaks templates
11 years ago
Baris Soner Usakli
097810a057
parseInt fixes getObjects fix
11 years ago
Baris Soner Usakli
3a7fcc2d3d
search in mongo
11 years ago
Baris Soner Usakli
e9fbab0f26
need mongo 2.4+ for text search'
11 years ago
Baris Soner Usakli
53ca7a1143
added search functions to database files, removed reds from nodebb moved it to redis
11 years ago
Baris Soner Usakli
447073560f
moved reds into redis, fixed notifications prune param
11 years ago
Baris Soner Usakli
1564e3d530
tons of fixes to mongo and redis, to make returns the same
11 years ago
Baris Usakli
806a454b05
fixing notifications.prune
11 years ago
Baris Usakli
b927f6ce29
added raw info
11 years ago
Baris Usakli
519d376071
added mongo info function, change admin redis template to database template
11 years ago
Baris Usakli
67d5ea83e7
replace . with \uff0e in mongo
11 years ago
Baris Usakli
7875138c08
added parseInt
11 years ago
Baris Usakli
2dd295118c
setRemove converts to string too
11 years ago
Baris Soner Usakli
567997ef3c
changed mongo sets to store just strings, fixes worlds problems
11 years ago
Baris Soner Usakli
c698af17ae
added error checking to collection index creation
11 years ago
Baris Soner Usakli
9b557cafd8
better sets in mongo, should change sorted sets too using sort
11 years ago
Baris Soner Usakli
7c4347736c
added index on _key
11 years ago
Baris Soner Usakli
e066fbf36a
sets are storing numbers in mongo as opposed to redis which stores strings, causes tons of problems
11 years ago
Baris Soner Usakli
b215dbde19
updated install
11 years ago
Baris Soner Usakli
2e2938616d
more mongo and redis stuff
11 years ago
Baris Soner Usakli
53a7eab3e8
removed couple RDB.multis
11 years ago
Baris Soner Usakli
4b5988c269
isSetMember returns true or false
11 years ago
Baris Soner Usakli
cfd3a7d126
added flushdb command to both dbs
11 years ago
Baris Soner Usakli
0471a192ab
more mongo stuff
11 years ago
Baris Soner Usakli
5c6a7d4b94
added regex keys to mongo
11 years ago
Baris Soner Usakli
ca01fb9f7d
added key methods to mongo
11 years ago
Baris Soner Usakli
113cb85c46
added lists to mongo
11 years ago
Baris Soner Usakli
21bbe68c97
added sortedSetRemove to mongo
11 years ago
Baris Soner Usakli
28c75e09a9
can haz sorted sets?
11 years ago
Baris Soner Usakli
b5770be71f
whitespace
11 years ago
Baris Soner Usakli
bf3822e8a5
incr wil create key if it doesnt exist
11 years ago
Baris Soner Usakli
cb6c42ea44
user stuff
11 years ago
Baris Soner Usakli
3dc3769088
fixed redis.keys
11 years ago
Baris Soner Usakli
3d18c4015a
cleanup
11 years ago
Baris Soner Usakli
610d45bb32
completed hashes in mongodb I hope :)
11 years ago
Baris Soner Usakli
66bc4184d8
deleteObjectField, isObjectField in mongo
11 years ago
Baris Soner Usakli
b024d10185
implemented getObjectValues in mongo
11 years ago
Baris Usakli
10474f8e2a
more mongo work
11 years ago
Baris Usakli
e862a1c4cc
added init method to database, progress made
11 years ago
Baris Usakli
91d6f83de4
more mongo work
11 years ago
Baris Soner Usakli
1f52717f1e
fixed indent
11 years ago
Baris Soner Usakli
304285e874
some mongo stuff
11 years ago
Baris Soner Usakli
6d79521922
moved connect-redis to the redis.db file, expose the sessionStore from redis.js db file, do the same for mongo db with mongo-connect
11 years ago
Baris Soner Usakli
b900bc9cce
more fixes
11 years ago
Baris Soner Usakli
32d5118266
tons more changes
11 years ago
Baris Soner Usakli
3775c8e50a
tons more changes
11 years ago
Baris Usakli
c9308efbec
more work
11 years ago