Removed performance logging from loading creatures

This commit is contained in:
Stefan Zermatten
2022-05-11 13:33:56 +02:00
parent 78cd8ffc8d
commit 7a35c66904
3 changed files with 2 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ function getProperties(creatureId) {
const props = Array.from(creature.properties.values());
return props;
}
console.time(`fetching from db: ${creatureId}`)
console.time(`Cache miss fetching from db: ${creatureId}`)
const props = CreatureProperties.find({
'ancestors.id': creatureId,
'removed': {$ne: true},
@@ -52,7 +52,7 @@ function getProperties(creatureId) {
sort: { order: 1 },
fields: { icon: 0 },
}).fetch();
console.timeEnd(`fetching from db: ${creatureId}`);
console.timeEnd(`Cache miss fetching from db: ${creatureId}`);
return props;
}