Skip to content

Commit

Permalink
Do only one schema command request
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Sep 23, 2016
1 parent 911d248 commit e6e2364
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/scripts/services/schema-loader.js
Expand Up @@ -252,13 +252,10 @@ angular.module('groongaAdminApp')
.success(function(response) {
schema.tables = buildTables(response);

var fetchColumnsTasks = [];
angular.forEach(schema.tables, function(table) {
fetchColumnsTasks.push(fetchColumns(table));
table.columns = buildColumns(response.tables()[table.name]);
});

return $q.all(fetchColumnsTasks)
.then(function() {
resolveIndexes(schema);
fetched = true;
fetching = false;
Expand All @@ -267,7 +264,6 @@ angular.module('groongaAdminApp')
});
waitingDeferes = [];
return schema;
});
});
}

Expand Down

0 comments on commit e6e2364

Please sign in to comment.