Use more efficient algorithm for generating internal ids (#3595) (#3596)

This commit is contained in:
Thomas Sondergaard 2019-12-27 20:16:38 +01:00 committed by Igor Savin
parent a613fe23df
commit c277edbaf1
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ assign(QueryCompiler.prototype, {
timeout: this.timeout,
cancelOnTimeout: this.cancelOnTimeout,
bindings: this.formatter.bindings || [],
__knexQueryUid: uuid.v4(),
__knexQueryUid: uuid.v1(),
};
Object.defineProperties(query, {

View File

@ -113,7 +113,7 @@ assign(Raw.prototype, {
);
}
obj.__knexQueryUid = uuid.v4();
obj.__knexQueryUid = uuid.v1();
return obj;
},