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
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
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
psychobunny
60e74cc2c3
LTRIM support for mongo
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
37b73e1c02
cleaner mongo setRemoveRandom
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
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
barisusakli
b7fcde446b
proper score aggregation #1562
11 years ago
barisusakli
7585b72644
remove duplicates
11 years ago
barisusakli
b32bb76429
#1562
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
6a1fa82b8b
closes #1402
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
46b6a93e98
organizing mongo driver
11 years ago