Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8ae0929

Browse files
docs: Add updated_at index to single_index_analysis workload example
1 parent 7aba657 commit 8ae0929

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

‎workload_examples/single_index_analysis.md‎

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,24 @@ drop sequence if exists test_pilot.items_id_seq;
2020
create sequence test_pilot.items_id_seq as bigint;
2121
2222
create table test_pilot.items (
23-
id bigint primary key default nextval('test_pilot.items_id_seq'::regclass),
24-
email text not null,
25-
status text not null,
26-
data jsonb,
27-
created_at timestamptz not null default now(),
28-
amount numeric(12,2) not null default 0,
29-
category integer not null default 0,
23+
id bigint primary key default nextval('test_pilot.items_id_seq'::regclass),
24+
email text not null,
25+
status text not null,
26+
data jsonb,
27+
created_at timestamptz not null default now(),
28+
amount numeric(12,2) not null default 0,
29+
category integer not null default 0,
3030
updated_at timestamptz
3131
);
3232
3333
alter sequence test_pilot.items_id_seq owned by test_pilot.items.id;
3434
35-
create index items_category_idx on test_pilot.items(category);
36-
create index items_status_idx on test_pilot.items(status);
37-
create index items_created_at_idx on test_pilot.items(created_at);
38-
create index items_email_idx on test_pilot.items(email);
39-
create index idx_items_data_gin on test_pilot.items using gin (data);
35+
create index items_updated_at_idx on test_pilot.items(updated_at);
36+
create index items_category_idx on test_pilot.items(category);
37+
create index items_status_idx on test_pilot.items(status);
38+
create index items_created_at_idx on test_pilot.items(created_at);
39+
create index items_email_idx on test_pilot.items(email);
40+
create index idx_items_data_gin on test_pilot.items using gin (data);
4041
4142
insert into test_pilot.items (email, status, data, created_at, amount, category, updated_at)
4243
select

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /