Paginate iam groups (#4194)
This commit is contained in:
1 parent
8dc431fef5
commit
40d9c3fd1d
19 files changed
+2034
-270
No files matched your search
@@ -10,11 +10,16 @@ begin;
|
||||
on iam_role (update_time desc, public_id desc);
|
||||
analyze iam_role;
|
||||
|
||||
-- Add new indexes for the create time and update time queries.
|
||||
create index iam_user_create_time_public_id_idx
|
||||
on iam_user (create_time desc, public_id desc);
|
||||
create index iam_user_update_time_public_id_idx
|
||||
on iam_user (update_time desc, public_id desc);
|
||||
analyze iam_user;
|
||||
|
||||
create index iam_group_create_time_public_id_idx
|
||||
on iam_group (create_time desc, public_id desc);
|
||||
create index iam_group_update_time_public_id_idx
|
||||
on iam_group (update_time desc, public_id desc);
|
||||
analyze iam_group;
|
||||
|
||||
commit;
|
||||
@@ -0,0 +1,12 @@
|
||||
-- Copyright (c) HashiCorp, Inc.
|
||||
-- SPDX-License-Identifier: BUSL-1.1
|
||||
|
||||
begin;
|
||||
select plan(2);
|
||||
|
||||
select has_index('iam_group', 'iam_group_create_time_public_id_idx', array['create_time', 'public_id']);
|
||||
select has_index('iam_group', 'iam_group_update_time_public_id_idx', array['update_time', 'public_id']);
|
||||
|
||||
select * from finish();
|
||||
|
||||
rollback;
|
||||
Reference in new issue
Block a user