Skip to content

Commit a23988a

Browse files
committed
small optimization: do not use native parsing for short messages
1 parent 72f1969 commit a23988a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-cubestore-driver/src/WebSocketConnection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class WebSocketConnection {
118118
throw new Error(`Cube Store missed message id: ${httpMessage.messageId()}`); // logging
119119
}
120120

121-
if (getEnv('nativeOrchestrator')) {
121+
if (getEnv('nativeOrchestrator') && msg.length > 1000) {
122122
try {
123123
const nativeResMsg = parseCubestoreResultMessage(msg);
124124
resolvers.resolve(nativeResMsg);

0 commit comments

Comments
 (0)