Commit Graph

8 Commits (45afe2e831b52554a89c8215aa2955172600d4d3)

Author SHA1 Message Date
barisusakli 45afe2e831 cast return to bool
barisusakli 10b30e303b mongo posting fix
barisusakli 94d050fd4f removed helpers.done
barisusakli 528ee335d5 optimize getTopicsByTids and getTeasers
barisusakli efdd795084 closes
barisusakli 37b73e1c02 cleaner mongo setRemoveRandom
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
psychobunny 46b6a93e98 organizing mongo driver