Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
473c47cd
Commit
473c47cd
authored
Oct 10, 2017
by
Alexander Zobnin
Committed by
Torkel Ödegaard
Oct 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snapshots: improve snapshot listing performance, #9314 (#9477)
exclude dashboard field from snapshot list search
parent
002b4d34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
pkg/models/dashboard_snapshot.go
+2
-1
pkg/services/sqlstore/dashboard_snapshot.go
+2
-1
No files found.
pkg/models/dashboard_snapshot.go
View file @
473c47cd
...
...
@@ -73,11 +73,12 @@ type GetDashboardSnapshotQuery struct {
}
type
DashboardSnapshots
[]
*
DashboardSnapshot
type
DashboardSnapshotsList
[]
*
DashboardSnapshotDTO
type
GetDashboardSnapshotsQuery
struct
{
Name
string
Limit
int
OrgId
int64
Result
DashboardSnapshots
Result
DashboardSnapshots
List
}
pkg/services/sqlstore/dashboard_snapshot.go
View file @
473c47cd
...
...
@@ -86,9 +86,10 @@ func GetDashboardSnapshot(query *m.GetDashboardSnapshotQuery) error {
}
func
SearchDashboardSnapshots
(
query
*
m
.
GetDashboardSnapshotsQuery
)
error
{
var
snapshots
=
make
(
m
.
DashboardSnapshots
,
0
)
var
snapshots
=
make
(
m
.
DashboardSnapshots
List
,
0
)
sess
:=
x
.
Limit
(
query
.
Limit
)
sess
.
Table
(
"dashboard_snapshot"
)
if
query
.
Name
!=
""
{
sess
.
Where
(
"name LIKE ?"
,
query
.
Name
)
...
...
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