We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1c8533f + fbd4d3c commit ece9116Copy full SHA for ece9116
src/server/object_services/object_server.js
@@ -1212,7 +1212,9 @@ function _list_add_results(state, results) {
1212
// this case avoids another last query when we got less results and no common prefixes
1213
// with common prefixes we cannot avoid the last query because the results might be
1214
// less than the requested limit although there are more results to fetch
1215
- if (!has_common_prefixes && count >= state.user_limit) {
+ //
1216
+ // for postgres we should not do another query, since the list command returns the required limit
1217
+ if (config.DB_TYPE === 'postgres' || (!has_common_prefixes && count >= state.user_limit)) {
1218
state.done = true;
1219
}
1220
0 commit comments