barisusakli
c56b9aafff
closes #2289 , replace Infinity with '+inf'
2014-11-07 19:40:41 -05:00
barisusakli
1fe82ee452
added 2 new methods to dbal
...
getSortedSetRangeWithScores
getSortedSetRangeByScoreWithScores
2014-10-31 17:19:55 -04:00
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
2014-10-15 21:55:31 -04:00
barisusakli
b65c17c5bc
parseInt score
2014-10-14 20:56:52 -04:00
barisusakli
e699c02b65
get less data
2014-10-12 23:46:58 -04:00
barisusakli
035c32df66
dont need to pass value on upserts
2014-10-10 19:21:47 -04:00
psychobunny
f149fb0191
linting, TIL that obj.$key is valid syntax
2014-10-08 12:22:39 -04:00
barisusakli
33780e6fdb
closes #2133
2014-10-03 14:14:41 -04:00
barisusakli
73d358edc5
faster getTeasers
...
got rid of getPostIndices
2014-10-03 13:43:51 -04:00
barisusakli
c72c876b04
check value
2014-10-02 18:57:21 -04:00
barisusakli
34106aa209
fix fields
2014-09-27 17:46:39 -04:00
barisusakli
5fc760c6c4
unread changes
2014-09-27 17:41:49 -04:00
barisusakli
9d25772b53
added sortedSetIncrBy
2014-09-27 15:48:16 -04:00
barisusakli
c5c97c784a
optimize getPostIndices
...
only use 1 set when its in a topic
2014-09-26 22:19:26 -04:00
barisusakli
5f2a66295c
check keys
2014-09-21 13:30:20 -04:00
barisusakli
b3d9db10f2
notification fixes
...
made post notifications unique per post so they dont overwrite other
types.
2014-09-14 12:07:27 -04:00
barisusakli
35a903f9c8
closes #2074
...
when new notifications are pushed to uids clear their old notifications.
2014-09-14 12:07:26 -04:00
barisusakli
493d0dea1e
part 1 of notif refactor
2014-09-14 12:07:23 -04:00
barisusakli
5222edb624
sortedSetsAdd
...
using mullti/bulk for redis/mongo
lets you add a score/value pair to multiple sorted sets at once
2014-09-08 16:13:48 -04:00
barisusakli
3f4ede0778
parseInt
2014-09-06 04:11:44 -04:00
barisusakli
84d0e64361
fix topic move
2014-09-03 20:19:51 -04:00
barisusakli
94d050fd4f
removed helpers.done
2014-09-03 01:13:28 -04:00
barisusakli
8b4c61241f
query change
2014-09-01 20:45:24 -04:00
barisusakli
cd096f8832
sortedSetScores for tag counts
2014-08-15 11:48:01 -04:00
barisusakli
e10eaf0d50
added tag counts to api return
2014-08-14 21:12:12 -04:00
barisusakli
c358ff3d83
fix isSortedSetMembers on mongo
2014-08-12 14:39:58 -04:00
barisusakli
eeb4c9f487
optimize getPostSummaryByPids
2014-07-29 17:33:28 -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
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
psychobunny
46b6a93e98
organizing mongo driver
2014-04-11 15:44:53 -04:00