-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(store): fix inf.Dec and big.Int compare #406
base: master
Are you sure you want to change the base?
fix(store): fix inf.Dec and big.Int compare #406
Conversation
c3e5c7b
to
0dd9953
Compare
2e0a3de
to
d04ca41
Compare
pkg/store/comp/compare_info.go
Outdated
@@ -0,0 +1,123 @@ | |||
// Copyright 2019 ScyllaDB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copyright 2023-present
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -0,0 +1,137 @@ | |||
// Copyright 2019 ScyllaDB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copyright 2023-present
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
pkg/store/comp/utils_4test.go
Outdated
@@ -0,0 +1,288 @@ | |||
// Copyright 2019 ScyllaDB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copyright 2023-present
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
pkg/store/cqlstore.go
Outdated
@@ -90,11 +92,25 @@ func (cs *cqlStore) doMutate(ctx context.Context, builder qb.Builder, ts time.Ti | |||
return nil | |||
} | |||
|
|||
func (cs *cqlStore) load(ctx context.Context, builder qb.Builder, values []interface{}) (result []map[string]interface{}, err error) { | |||
func (cs *cqlStore) loadSV(ctx context.Context, builder qb.Builder, values []interface{}) (sv.Result, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SV and MV are cryptic.
Why not expand them here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expanded
pkg/store/mv/c_list.go
Outdated
@@ -0,0 +1,198 @@ | |||
// Copyright 2019 ScyllaDB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copyright 2023-present
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
pkg/store/mv/c_list.go
Outdated
out += fmt.Sprintf("%d:%s;", idx, l[idx].ToString(listInfo.Elem)) | ||
} | ||
out = out[:len(out)-1] | ||
return out + ">" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you modify the last char to >
in place instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't. It's string, simple chars modifications impossible. Modified to return out[:len(out)-1] + ">"
changes in check of responses rows procces: *rows data unmarshalling into byte slices. *rows data compare as byte slices, without transformation to 'GO' types. *rows diff information now more user friendly and can be customed. Diff collect row by row to string slice and can be transferred anywhere with better readable.
2) remake ColumnRaw to string instead []byte
49104c5
to
2fbfc33
Compare
As solution #405 (comment)
Main changes:
'gemini' productivity has increased on 30% for responses with big rows count and on 8% for responses with usual rows count.