Commit Graph

25 Commits

Author SHA1 Message Date
barisusakli
efdd795084 closes #1922 2014-07-30 14:29:48 -04:00
barisusakli
eeb4c9f487 optimize getPostSummaryByPids 2014-07-29 17:33:28 -04:00
barisusakli
1a68fe5a26 possible fix for #1909 2014-07-29 17:12:02 -04:00
barisusakli
68cf064b1e cleaned up a bit 2014-07-29 02:37:33 -04:00
barisusakli
d0a0d02d31 mongodb list fix 2014-07-29 02:34:55 -04:00
psychobunny
60e74cc2c3 LTRIM support for mongo 2014-07-28 14:20:29 -04:00
barisusakli
3829019bfa removed optional params 2014-07-24 23:33:33 -04:00
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.
2014-07-24 12:41:22 -04:00
barisusakli
a3fecee781 removed console.log err check 2014-07-22 13:00:04 -04:00
barisusakli
89bb11a58c closes #1880 2014-07-22 12:56:34 -04:00
barisusakli
d00740703b use the new $text query from mongo 2.6 2014-07-21 14:18:42 -04:00
barisusakli
37b73e1c02 cleaner mongo setRemoveRandom 2014-07-04 23:36:40 -04:00
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
2014-06-28 01:03:26 -04:00
barisusakli
e6d8e9c959 searchIndex callbacks 2014-06-24 09:15:44 -04:00
barisusakli
fd12ec763a sortedSetsRemove
instead of calling sortedSetRemove() one at a time for each id remove
value from multiple sortedSets with one db call
2014-06-21 22:37:46 -04:00
barisusakli
b7fcde446b proper score aggregation #1562 2014-05-23 17:03:53 -04:00
barisusakli
7585b72644 remove duplicates 2014-05-23 15:36:54 -04:00
barisusakli
b32bb76429 #1562 2014-05-23 14:30:59 -04:00
barisusakli
746df87d89 upgrade tags to sorted set 2014-05-22 13:06:19 -04:00
Julian Lam
e64c1bfec3 closed #1453 2014-05-11 11:45:20 -04:00
Julian Lam
bab140c396 added pexpire and pexpireAt methods for redis and mongo. Added emoticons for leveldb (as per existing implementation by @psychobunny LOL) 2014-05-11 10:31:32 -04:00
barisusakli
6a1fa82b8b closes #1402 2014-04-18 13:14:38 -04:00
psychobunny
290e348851 move database helpers into their own files 2014-04-14 15:09:57 -04:00
psychobunny
bba3df6802 moving db.close into the parent module 2014-04-14 13:51:45 -04:00
psychobunny
46b6a93e98 organizing mongo driver 2014-04-11 15:44:53 -04:00