322 Commits (9c0b98df7bff035c17c514467e3201a02b3dca66)

Author SHA1 Message Date
Peter Jaszkowiak 1493afee2a ESlint indent 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 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 d7526b5e44 ESlint array-bracket-spacing
and object-property-newline
8 years ago
Peter Jaszkowiak 2ba46808a1 ESlint one-var, fix comma-dangle 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
barisusakli b71ab64cf4 organize dbal sorted code 9 years ago
Moritz Schmidt c8393d6f87 mongo: set scores as float instead of int 9 years ago
barisusakli 5d6e2ad083 multiple test fixes 9 years ago
Barış Soner Uşaklı c512a02c83 Merge pull request #5124 from yariplus/lexistuff
Add additional lexical dbal operations.
9 years ago
yariplus af2122bdb9 fix lex tests maybe 9 years ago
barisusakli 4a0f67afdc search tests
new method emptydb
use emptydb instead of flushdb, flushdb  removes indices for mongo which
breaks search tests
initialize meta.config properly in tests
enable nodebb-plugin-dbsearch for tests
9 years ago
yariplus 472dd007d8 fix mongo lex callback 9 years ago
yariplus be3b35dea3 fix callbacks and regex 9 years ago
yariplus 1bb44e2429 Allow lex min and max to be inclusive or exclusive. 9 years ago
yariplus 437d2744cc addl lex commands for mongo 9 years ago
barisusakli 1a63672e66 more test fixes 9 years ago
barisusakli e462fadd94 init express/webserver for tests 9 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ı be07772a91 check for e11000 9 years ago
barisusakli cd9e2d17a3 fix db.incrObjectFieldBy for mongo
convert string to int
9 years ago
Barış Soner Uşaklı 0452e9cfa4 dont need last step 9 years ago
barisusakli 990ecc8cd2 sortedSetIntersectionCard 9 years ago
barisusakli 7b7ec77f5c remove console.log 9 years ago
barisusakli e1263f1057 sortedSetUnionCard 9 years ago
barisusakli eabb745116 change union to match intersect
accept aggregate and withscores
9 years ago
barisusakli fe3417538c fix getSortedSetRange() if start>0 and stop is -1 9 years ago
barisusakli f77d9053ad closes #4795 9 years ago
barisusakli f4e3d571a3 shorter 9 years ago
barisusakli 6022fd984a closes #4945 9 years ago
barisusakli 17b4dd85e7 use valueToString in sortedSetIncrBy 9 years ago
barisusakli a9cc12c667 retry failed upserts closes #4467 9 years ago
barisusakli 5920697ac0 closes #4368 9 years ago
barisusakli d52a0ad87a closes #4366 9 years ago
barisusakli b0151502c2 use '-inf'/'+inf' 9 years ago
barisusakli 018f7ba65a closes #4307
ability to send an array of keys to getSortedSetRange
use getSortedSetRevRange instead of getSortedSetRevUnion
9 years ago
Barış Soner Uşaklı 4316c9a566 style changes 9 years ago
Ben Lubar df8c1abf7d fast path for mongodb batches (otherwise it's O(n^2) memory, which gets ugly fast) 9 years ago
barisusakli dcbf53bae3 moved search to dbsearch 10 years ago
barisusakli 60e1831152 check online from users:online zset 10 years ago
barisusakli 53d29e29af performance improvements
store parsed category description
removed mongo _key from returns
dont get category teaser for parent
10 years ago
barisusakli e2f590e0b4 only return id 10 years ago
barisusakli e7f87f4ffd closes #3686 10 years ago
Barış Soner Uşaklı fd87bedc90 fix indent 10 years ago
Barış Soner Uşaklı 0d789261a9 filter falsy check valid 10 years ago
barisusakli ea818e2af8 closes #3259 10 years ago
Barış Soner Uşaklı 6fc073d33e if key is fasly not a member 10 years ago
barisusakli aa577f4adc part 1
no upgrade script yet
10 years ago
barisusakli d9af2242a7 store id as int 10 years ago
barisusakli 7b550b13b9 display both redis/mongo info if available 10 years ago
barisusakli 625a0dcbfa closes #3074 10 years ago
barisusakli 6c0e07c384 Merge remote-tracking branch 'origin/master' into mongodb-3.0-driver-2.0 10 years ago
barisusakli 518aec6e76 modified indices, removed key 2 collections now 10 years ago
barisusakli ec7caea368 fix search on mongo 10 years ago
barisusakli 78c65aee05 even more search changes 10 years ago
barisusakli e2196af8ab part 2 of search changes 10 years ago
barisusakli c7128bcc98 part 1 of search change 10 years ago
barisusakli ec8fc8b97b dont do anything if id is falsy
added callback
10 years ago
Barış Soner Uşaklı e4199179f7 Merge remote-tracking branch 'origin/master' into mongodb-3.0-driver-2.0 10 years ago
Barış Soner Uşaklı ea9fccbf2a fix -inf +inf
added test for -inf +inf
10 years ago
Barış Soner Uşaklı 6bd3c54a03 fix findAndModify
temp fix for connect-mongo
create admin after categories
10 years ago
psychobunny b0628c2df8 missing semi-colons in database/ 10 years ago
Barış Soner Uşaklı 52aa7d27e8 #2761 10 years ago
Barış Soner Uşaklı 9de0c0cdd4 closes #2761 10 years ago
barisusakli d577371a51 fix test 10 years ago
barisusakli 0dca86f255 fix tests 10 years ago
barisusakli 3bcd8aefb0 deleteObjectFields method
cleaned up user reset
10 years ago
barisusakli c379753341 upgrade scripts
upgrade groups to sorted set(groups:createtime) upgrade
upgrade groups:<name>:members to sorted set
new database methods
tests
11 years ago
barisusakli 4c62590bc8 closes #2628 11 years ago
barisusakli fbd875b397 fix sortedSetIncrBy return 11 years ago
barisusakli 0a534b20e3 sortedSetCount fix for +inf/-inf 11 years ago
barisusakli 03ee524121 fix tests and mongo method 11 years ago
barisusakli 00541b2bc8 sortedSetRange tests 11 years ago
barisusakli 4d5ed784a1 more hash tests
getObjectValues
isObjectField
deleteObjectField
incrObjectField
11 years ago
barisusakli c62e7ed641 list test fix 11 years ago
barisusakli 3e8c29e5f9 list tests 11 years ago
barisusakli 7cf3719c80 fix rename and increment 11 years ago
barisusakli 410d9fa4fa fix more tests 11 years ago
barisusakli 2f8e6a1f2b closes #2458 11 years ago
barisusakli 984b17349a closes #2476 11 years ago
barisusakli 81e4bcd358 fix rename to multi 11 years ago
barisusakli 671ec8532c fix unfavourite 11 years ago
barisusakli 0a44d3f5e0 moved updateCategoryField out, db.delete only sends back err 11 years ago
barisusakli c56b9aafff closes #2289, replace Infinity with '+inf' 11 years ago
barisusakli 9440f8f8cd #2344 11 years ago
barisusakli 1fe82ee452 added 2 new methods to dbal
getSortedSetRangeWithScores
getSortedSetRangeByScoreWithScores
11 years ago
barisusakli 1b80e6dbb2 fix email update on mongo 11 years ago
barisusakli fec84821b7 removed this wasn't the problem after all 11 years ago
barisusakli df590d01e6 set key as well
not sure if this fixes dupe keys
11 years ago
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
11 years ago
barisusakli b65c17c5bc parseInt score 11 years ago
barisusakli e699c02b65 get less data 11 years ago
barisusakli 10ead05d4b another unused require 11 years ago
barisusakli 8cc1cc0f1b removed unused require 11 years ago
barisusakli 1eb95a71ae no need for $in 11 years ago
barisusakli feed33f6e2 closes #2100 11 years ago
barisusakli 035c32df66 dont need to pass value on upserts 11 years ago
psychobunny f149fb0191 linting, TIL that obj.$key is valid syntax 11 years ago
barisusakli 33780e6fdb closes #2133 11 years ago
barisusakli 73d358edc5 faster getTeasers
got rid of getPostIndices
11 years ago
barisusakli c72c876b04 check value 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 34106aa209 fix fields 11 years ago
barisusakli 5fc760c6c4 unread changes 11 years ago
barisusakli 9d25772b53 added sortedSetIncrBy 11 years ago
barisusakli c5c97c784a optimize getPostIndices
only use 1 set when its in a topic
11 years ago
barisusakli 515e663f85 getObjectsFix
return empty array if keys is empty or not an array
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 1bad2f79ee show megabyte values 11 years ago
barisusakli 4b80bbb9c4 optimized user.delete 11 years ago
barisusakli 451c5b40fd removed debug 11 years ago
barisusakli 0a936e5dd1 unreadTids 11 years ago
barisusakli b3d9db10f2 notification fixes
made post notifications unique per post so they dont overwrite other
types.
11 years ago
barisusakli 35a903f9c8 closes #2074
when new notifications are pushed to uids clear their old notifications.
11 years ago
barisusakli 493d0dea1e part 1 of notif refactor 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 5222edb624 sortedSetsAdd
using mullti/bulk for redis/mongo
lets you add a score/value pair to multiple sorted sets at once
11 years ago
barisusakli ec32a3d243 mising reuqire 11 years ago
psychobunny 0727c2a0bf forgot winston 11 years ago
barisusakli 2252ab7479 notifications.prune
run every hour
dont get more than 500 notifications
11 years ago
barisusakli fe58ea55d4 moved debugs 1 level up increased key limit to 100 11 years ago
barisusakli 3f4ede0778 parseInt 11 years ago
barisusakli 017f6bde2c 50 11 years ago
barisusakli e2697030ec removed reuqire 11 years ago
barisusakli a48e95b910 check keys 11 years ago
barisusakli 45afe2e831 cast return to bool 11 years ago
barisusakli c8692f0562 Merge remote-tracking branch 'origin/0.5.1' into cluster 11 years ago
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