Content View list takes too long

Hello @Bernhard_Suttner ,

I just applied this patch and it’s like night and day, thank you for that :slight_smile:

Before:

[PRD root@updates ~ - 09:47:55][0][0]# time hammer --no-headers content-view list --organization-label <my org> --fields "Content View ID" --noncomposite 1
Error: Timed out reading data from server

real    4m8.128s
user    0m1.546s
sys     0m0.265s

After:

[PRD root@updates ~ - 10:15:36][3][0]# time hammer --no-headers content-view list --organization-label <mt org> --fields "Content View ID" --noncomposite 1
(list of ids)

real    0m11.750s
user    0m1.585s
sys     0m0.208s

The web interface is also very fast.

The only downside I see is that on the web interface for the non composite CV the column Latest version has the message Not yet published

But hammer shows that info.

[PRD root@updates ~ - 10:28:01][3][0]# time hammer --no-headers content-view list --organization-label <my org> --fields "Content View ID,Last published" --noncomposite 1
33              | 2024/01/29 06:02:59
17              | 2024/01/29 06:00:20
3               | 2024/01/29 06:52:23
19              | 2024/01/29 06:01:39
(...)
1 Like