Skip to content

Commit c3d6b90

Browse files
authored
Abstract poolSize
Abstract poolSize * Since we've been running our own DB server we have way more connections... utilize them. * Re-Rearrange indexing to closely match query order and style conformance with spacing Post #2048 NOTE: There's more to do...
1 parent 4f41abd commit c3d6b90

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ var _ = require('underscore');
7373
var findSessionData = require('./libs/modifySessions').findSessionData;
7474

7575
var dbOptions = {};
76-
var defaultPoolSize = 10;
76+
var defaultPoolSize = ensureIntegerOrNull(process.env.CONNECT_POOL_SIZE) || 100; // Current *mongoose* default
7777
if (isPro) {
7878
dbOptions = {
7979
poolSize: defaultPoolSize,

libs/modelQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ var parseScriptSearchQuery = function (aScriptListQuery, aQuery, aLimited) {
125125
});
126126
} else {
127127
parseModelListSearchQuery(aScriptListQuery, aQuery, {
128-
partialWordMatchFields: ['name', '_description', 'author', '_about' ],
128+
partialWordMatchFields: ['name', 'author', '_description', '_about'],
129129
fullWordMatchFields: ['meta.UserScript.include.value', 'meta.UserScript.match.value']
130130
});
131131
}

0 commit comments

Comments
 (0)