File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
packages/cubejs-cubestore-driver Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 3030 "@cubejs-backend/cubestore" : " 1.2.27" ,
3131 "@cubejs-backend/native" : " 1.2.27" ,
3232 "@cubejs-backend/shared" : " 1.2.27" ,
33+ "@node-rs/xxhash" : " ^1.7.6" ,
3334 "csv-write-stream" : " ^2.0.0" ,
3435 "flatbuffers" : " 23.3.3" ,
3536 "fs-extra" : " ^9.1.0" ,
Original file line number Diff line number Diff line change 1- import crypto from 'crypto ' ;
1+ import { xxh3 } from '@node-rs/xxhash ' ;
22import {
33 QueueDriverInterface ,
44 QueueDriverConnectionInterface ,
@@ -22,7 +22,7 @@ import { CubeStoreDriver } from './CubeStoreDriver';
2222
2323function hashQueryKey ( queryKey : QueryKey , processUid ?: string ) : QueryKeyHash {
2424 processUid = processUid || getProcessUid ( ) ;
25- const hash = crypto . createHash ( 'md5' ) . update ( JSON . stringify ( queryKey ) ) . digest ( 'hex' ) ;
25+ const hash = xxh3 . xxh128 ( JSON . stringify ( queryKey ) ) . toString ( 16 ) ;
2626
2727 if ( typeof queryKey === 'object' && queryKey . persistent ) {
2828 return `${ hash } @${ processUid } ` as any ;
You can’t perform that action at this time.
0 commit comments