Barış Soner Uşaklı
e0501656b6
parallel startup
8 years ago
Barış Soner Uşaklı
bca6151892
fix lint
8 years ago
Barış Soner Uşaklı
8c8e2ae190
closes #5271
8 years ago
Moritz Schmidt
e8e33a8a23
ZSET scores are float: parseInt => parseFloat
...
In Redis, scores of sorted sets can be floats – so we should use `parseFloat` instead of `parseInt` when converting from string to number.
Should not lead to #4939 again, as `new Date()` works regardless of whether it's being passed a float or integer.
8 years ago
barisusakli
1c3d9f7e94
switch to createIndex
8 years ago
barisusakli
5d6e2ad083
multiple test fixes
8 years ago
barisusakli
c8b5c181ff
fix flag on redis
...
check if number is returned on tests
8 years ago
Barış Soner Uşaklı
c512a02c83
Merge pull request #5124 from yariplus/lexistuff
...
Add additional lexical dbal operations.
8 years ago
yariplus
af2122bdb9
fix lex tests maybe
8 years ago
barisusakli
4a0f67afdc
search tests
...
new method emptydb
use emptydb instead of flushdb, flushdb removes indices for mongo which
breaks search tests
initialize meta.config properly in tests
enable nodebb-plugin-dbsearch for tests
8 years ago
yariplus
472dd007d8
fix mongo lex callback
8 years ago
yariplus
be3b35dea3
fix callbacks and regex
8 years ago
yariplus
1bb44e2429
Allow lex min and max to be inclusive or exclusive.
8 years ago
yariplus
437d2744cc
addl lex commands for mongo
8 years ago
yariplus
ef20757f3e
zremrangebylex, zlexcount
8 years ago
barisusakli
1a63672e66
more test fixes
8 years ago
yariplus
1fc5e5d0d3
getSortedSetRevRangeByLex
8 years ago
barisusakli
e462fadd94
init express/webserver for tests
8 years ago
barisusakli
6d97c4cec8
up mongo deps, create session store after db.authenticate
8 years ago
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
8 years ago
HeeL
3fa1c1f927
Fix space-infix-ops linter rule
8 years ago
barisusakli
3275d26590
removed comments
9 years ago
Nguyen Trung Quan
279559ff97
Fix: Memory leak & connection flood when access /admin/advanced/database
9 years ago
barisusakli
4eb8015017
closes #5069
9 years ago
Barış Soner Uşaklı
be07772a91
check for e11000
9 years ago
barisusakli
0d09fcbee7
fix setAdd on redis for empty arrays
9 years ago
barisusakli
cd9e2d17a3
fix db.incrObjectFieldBy for mongo
...
convert string to int
9 years ago
Barış Soner Uşaklı
0452e9cfa4
dont need last step
9 years ago
barisusakli
990ecc8cd2
sortedSetIntersectionCard
9 years ago
barisusakli
7b7ec77f5c
remove console.log
9 years ago
barisusakli
e1263f1057
sortedSetUnionCard
9 years ago
barisusakli
eabb745116
change union to match intersect
...
accept aggregate and withscores
9 years ago
barisusakli
fe3417538c
fix getSortedSetRange() if start>0 and stop is -1
9 years ago
barisusakli
f77d9053ad
closes #4795
9 years ago
barisusakli
3d56776ab0
fix tabs
9 years ago
barisusakli
f4e3d571a3
shorter
9 years ago
barisusakli
6022fd984a
closes #4945
9 years ago
barisusakli
c8a369f5c3
closes #4939
9 years ago
barisusakli
7f041a756d
closes #4865
9 years ago
barisusakli
17b4dd85e7
use valueToString in sortedSetIncrBy
9 years ago
wktang
414a26fe42
Default mongodb db name should be "nodebb" instead of 0 (unlike redis). ( #4573 )
9 years ago
Mr.Lee
3e2f36fc29
Make the description more clear.
...
The same description in mongo.js and install.js are ambiguous.
9 years ago
barisusakli
a9cc12c667
retry failed upserts closes #4467
9 years ago
barisusakli
5920697ac0
closes #4368
9 years ago
barisusakli
d52a0ad87a
closes #4366
9 years ago
barisusakli
b0151502c2
use '-inf'/'+inf'
9 years ago
barisusakli
018f7ba65a
closes #4307
...
ability to send an array of keys to getSortedSetRange
use getSortedSetRevRange instead of getSortedSetRevUnion
9 years ago
Barış Soner Uşaklı
4316c9a566
style changes
9 years ago
Ben Lubar
df8c1abf7d
fast path for mongodb batches (otherwise it's O(n^2) memory, which gets ugly fast)
9 years ago
barisusakli
20ca1e40aa
fallback
9 years ago
barisusakli
d44d036b67
up mongodb connect-mongo remove workaround
9 years ago
barisusakli
7185463d81
display avg object size in bytes
9 years ago
barisusakli
dcbf53bae3
moved search to dbsearch
9 years ago
barisusakli
60e1831152
check online from users:online zset
9 years ago
barisusakli
53d29e29af
performance improvements
...
store parsed category description
removed mongo _key from returns
dont get category teaser for parent
9 years ago
barisusakli
e2f590e0b4
only return id
9 years ago
barisusakli
a1dca63914
fileSize fix
9 years ago
barisusakli
a9fae94e5a
switch to dbStats, only display fileSize if it exists
9 years ago
barisusakli
5fda800f2b
filter info
9 years ago
barisusakli
3b9fdcaa2b
more mongodb info
9 years ago
barisusakli
e7f87f4ffd
closes #3686
10 years ago
Barış Soner Uşaklı
235a981dd1
added mongodb memory usage
10 years ago
Barış Soner Uşaklı
fd87bedc90
fix indent
10 years ago
Barış Soner Uşaklı
0d789261a9
filter falsy check valid
10 years ago
barisusakli
f4ea534327
closes #3312
10 years ago
barisusakli
ea818e2af8
closes #3259
10 years ago
Barış Soner Uşaklı
6fc073d33e
if key is fasly not a member
10 years ago
psychobunny
78ea462620
fix crash when redis server isn't running
10 years ago
Julian Lam
96526a37a3
fixed #3218
10 years ago
Julian Lam
d5c6e2e73a
Merge pull request #3156 from pentode/master
...
add feature to define mongo client connect options via config.json
10 years ago
barisusakli
aa577f4adc
part 1
...
no upgrade script yet
10 years ago
pentode
297b5906ed
add feature to define mongo client connect options via config.json
10 years ago
barisusakli
d9af2242a7
store id as int
10 years ago
barisusakli
484ad33549
convert key, value index to sparse/unique
10 years ago
barisusakli
7b550b13b9
display both redis/mongo info if available
10 years ago
Julian Lam
379bdd12e0
fixed improper parsing of url in loader, and updated mongo init to not send anything in cb except err. Also updated webserver init so that it doesn't expect stuff from static:app.preload
10 years ago
Ryan Wilson
6f66209428
use tabs per barisusakli
10 years ago
Ryan Wilson
c354929569
handled port as int with toString()
...
Signed-off-by: Ryan Wilson <syndicated.life@gmail.com>
10 years ago
Ryan Wilson
ec6c618751
use replicaset if configured
...
Signed-off-by: Ryan Wilson <syndicated.life@gmail.com>
10 years ago
barisusakli
625a0dcbfa
closes #3074
10 years ago
Julian Lam
848babcdfa
Merge pull request #2778 from ahwayakchih/support-more-config-defaults-for-setup
...
This adds more setup defaults from config.
10 years ago
Barış Soner Uşaklı
ba1afdf879
dont crash if callback isnt supplied fixes #3033
10 years ago
barisusakli
fa9fde43fb
closes #2971
10 years ago
Barış Soner Uşaklı
ca332d23c0
wait for createIndex errors
10 years ago
Barış Soner Uşaklı
f6d0ad9b0f
Merge remote-tracking branch 'origin/master' into mongodb-3.0-driver-2.0
10 years ago
Julian Lam
4dbb1c08b6
added default host port and db settings for mongo, if not set in config file
10 years ago
barisusakli
6c0e07c384
Merge remote-tracking branch 'origin/master' into mongodb-3.0-driver-2.0
10 years ago
barisusakli
518aec6e76
modified indices, removed key 2 collections now
10 years ago
barisusakli
ec7caea368
fix search on mongo
10 years ago
barisusakli
78c65aee05
even more search changes
10 years ago
barisusakli
e2196af8ab
part 2 of search changes
10 years ago
barisusakli
c7128bcc98
part 1 of search change
10 years ago
barisusakli
ec8fc8b97b
dont do anything if id is falsy
...
added callback
10 years ago
Barış Soner Uşaklı
e4199179f7
Merge remote-tracking branch 'origin/master' into mongodb-3.0-driver-2.0
10 years ago
Barış Soner Uşaklı
ea9fccbf2a
fix -inf +inf
...
added test for -inf +inf
10 years ago
Barış Soner Uşaklı
6bd3c54a03
fix findAndModify
...
temp fix for connect-mongo
create admin after categories
10 years ago
Barış Soner Uşaklı
e421a2c7cd
pass session
10 years ago
psychobunny
b0628c2df8
missing semi-colons in database/
10 years ago
ahwayakchih
4c2f628baa
Added support for using `mongo:password` and `redis:password` from config, when no password is entered at setup. This allows for having "default" password and overrides from config. Added using `mongo:username` and `port` from config when running setup.
10 years ago
Barış Soner Uşaklı
52aa7d27e8
#2761
10 years ago
Barış Soner Uşaklı
9de0c0cdd4
closes #2761
10 years ago
barisusakli
d577371a51
fix test
10 years ago
barisusakli
0dca86f255
fix tests
10 years ago
barisusakli
3bcd8aefb0
deleteObjectFields method
...
cleaned up user reset
10 years ago
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
11 years ago
barisusakli
df590d01e6
set key as well
...
not sure if this fixes dupe keys
11 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
11 years ago
barisusakli
90224d2de3
removed unique for now
11 years ago
barisusakli
f2883c2c9f
createIndex helper
11 years ago
barisusakli
1be6a253bf
make _key value index unique
11 years ago
barisusakli
b65c17c5bc
parseInt score
11 years ago
barisusakli
e699c02b65
get less data
11 years ago
barisusakli
10ead05d4b
another unused require
11 years ago
barisusakli
8cc1cc0f1b
removed unused require
11 years ago
barisusakli
1eb95a71ae
no need for $in
11 years ago
barisusakli
feed33f6e2
closes #2100
11 years ago
barisusakli
035c32df66
dont need to pass value on upserts
11 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 :)
11 years ago
psychobunny
f149fb0191
linting, TIL that obj.$key is valid syntax
11 years ago
barisusakli
5db24fbe68
closes #2175
11 years ago
barisusakli
740c336480
typo
11 years ago
barisusakli
dba20160ce
check length
11 years ago
barisusakli
33780e6fdb
closes #2133
11 years ago
barisusakli
73d358edc5
faster getTeasers
...
got rid of getPostIndices
11 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
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