Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-datastore
Commits
74196ced
Commit
74196ced
authored
Apr 18, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ktds: explain how we apply orders
parent
086377d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
keytransform/keytransform.go
keytransform/keytransform.go
+7
-0
No files found.
keytransform/keytransform.go
View file @
74196ced
...
...
@@ -115,7 +115,14 @@ orders:
continue
case
dsq
.
OrderByKey
,
*
dsq
.
OrderByKey
,
dsq
.
OrderByKeyDescending
,
*
dsq
.
OrderByKeyDescending
:
// if the key transform preserves order, we can delegate
// to the child datastore.
if
orderPreserving
{
// When sorting, we compare with the first
// Order, then, if equal, we compare with the
// second Order, etc. However, keys are _unique_
// so we'll never apply any additional orders
// after ordering by key.
child
.
Orders
=
child
.
Orders
[
:
i
+
1
]
break
orders
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment