I have deployed a single organization network on IBM Blockchain v2. I am experiencing very slow load times (always over 3 seconds for a single asset.)
I have bumped up specs on the Kubernetes cluster. I have also adjusted some of the resource allocations, but the load time didn't budge.
async query(ctx, key) {
console.info('query by key ' + key);
let returnAsBytes = await ctx.stub.getState(key);
console.info(returnAsBytes)
if (!returnAsBytes || returnAsBytes.length === 0) {
return new Error(`${key} does not exist`);
}
let result = JSON.parse(returnAsBytes);
console.info('result of getState: ');
console.info(result);
return JSON.stringify(result);
}
I am wondering if there is a way to get faster results. I also haven't found been able to find many resources on proper deployments for IBM Blockchain v2, so I'm unsure if I'm doing something incorrectly.