Commit 2a6d4f8e authored by manojmj's avatar manojmj

Replace 'marked_for_deletion_at' reference in #database-labs docs

parent b8a12f40
...@@ -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:
......
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