Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2a6d4f8e
Commit
2a6d4f8e
authored
Apr 09, 2020
by
manojmj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace 'marked_for_deletion_at' reference in #database-labs docs
parent
b8a12f40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
doc/development/understanding_explain_plans.md
doc/development/understanding_explain_plans.md
+2
-2
No files found.
doc/development/understanding_explain_plans.md
View file @
2a6d4f8e
...
@@ -721,7 +721,7 @@ For example, in order to test new index you can do the following:
...
@@ -721,7 +721,7 @@ For example, in order to test new index you can do the following:
Create the index:
Create the index:
```
sql
```
sql
exec
CREATE
INDEX
index_projects_
marked_for_deletion
ON
projects
(
marked_for_deletion_at
)
WHERE
marked_for_deletion
_at
IS
NOT
NULL
exec
CREATE
INDEX
index_projects_
last_activity
ON
projects
(
last_activity_at
)
WHERE
last_activity
_at
IS
NOT
NULL
```
```
Analyze the table to update its statistics:
Analyze the table to update its statistics:
...
@@ -733,7 +733,7 @@ exec ANALYZE projects
...
@@ -733,7 +733,7 @@ exec ANALYZE projects
Get the query plan:
Get the query plan:
```
sql
```
sql
explain
SELECT
*
FROM
projects
WHERE
marked_for_deletion
_at
<
CURRENT_DATE
explain
SELECT
*
FROM
projects
WHERE
last_activity
_at
<
CURRENT_DATE
```
```
Once done you can rollback your changes:
Once done you can rollback your changes:
...
...
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