Commit 3568c7b6 authored by Mike Jang's avatar Mike Jang

Merge branch 'database-lab-docs' into 'master'

Replace 'marked_for_deletion_at' reference in #database-labs docs

See merge request gitlab-org/gitlab!29221
parents 088eed8e 2a6d4f8e
......@@ -721,7 +721,7 @@ For example, in order to test new index you can do the following:
Create the index:
```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:
......@@ -733,7 +733,7 @@ exec ANALYZE projects
Get the query plan:
```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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment