Barış Soner Uşaklı
e7318a1cea
Mongo cache ( #6002 )
...
* cache mongodb objects
remove user settings cache since it is cached at the object level
* removed indexOf from isMemberOfSets
* change has to get, change maxAge to 0
8 years ago
Peter Jaszkowiak
4bb49a7171
ESlint no-unused-vars
8 years ago
Peter Jaszkowiak
896c8c7343
ESlint object-curly-spacing
8 years ago
Peter Jaszkowiak
feb8405f95
ESlint eol-last
8 years ago
Peter Jaszkowiak
a038c66549
ESlint quotes
8 years ago
Peter Jaszkowiak
604358ecc4
ESlint keyword-spacing, no-multi-spaces
8 years ago
Peter Jaszkowiak
2e031f3759
ESlint comma-spacing
8 years ago
Peter Jaszkowiak
277a7fb8b4
ESlint key-spacing, no-trailing-spaces
8 years ago
Peter Jaszkowiak
3361a72725
ESlint no-plusplus
...
and no-empty, space-unary-ops
8 years ago
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
8 years ago
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
9 years ago
HeeL
3fa1c1f927
Fix space-infix-ops linter rule
9 years ago
Barış Soner Uşaklı
6fc073d33e
if key is fasly not a member
10 years ago
psychobunny
b0628c2df8
missing semi-colons in database/
10 years ago
barisusakli
2f8e6a1f2b
closes #2458
10 years ago
barisusakli
671ec8532c
fix unfavourite
11 years ago
barisusakli
8cc1cc0f1b
removed unused require
11 years ago
barisusakli
1eb95a71ae
no need for $in
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
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
4b80bbb9c4
optimized user.delete
11 years ago
barisusakli
451c5b40fd
removed debug
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
ec32a3d243
mising reuqire
11 years ago
barisusakli
fe58ea55d4
moved debugs 1 level up increased key limit to 100
11 years ago
barisusakli
45afe2e831
cast return to bool
11 years ago
barisusakli
10b30e303b
mongo posting fix
11 years ago
barisusakli
94d050fd4f
removed helpers.done
11 years ago
barisusakli
528ee335d5
optimize getTopicsByTids and getTeasers
11 years ago
barisusakli
efdd795084
closes #1922
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
psychobunny
46b6a93e98
organizing mongo driver
11 years ago