PTF - Performance Testing of Circulation Logs - Item Barcode Search

PTF - Performance Testing of Circulation Logs - Item Barcode Search

Overview

Summary

  • Performance testing of the Circulation Log Item Barcode Search was conducted against a dataset of 6M+ circulation log entries on the asptc2 environment. Two search types were evaluated — full barcode search and right-truncated barcode search — each tested across four offset levels and three filter combinations.

  • Full barcode search (Test №1) demonstrated stable performance, with average response times of 64–102 ms and 95th percentile under 208 ms across all offsets and filters. Pagination depth and filters had minimal impact on response times.

  • Right-truncated barcode search (Test №2) performed well under default and description filter conditions (avg 158–226 ms), but showed a slower performance with the date filter, where average response times spiked to ~2 seconds (~10× slower). This behavior is reflected in elevated DB CPU utilization (avg 13%, with spikes up to 15%).

  • Resource utilization remained moderate overall. The mod-audit service CPU averaged 22% (max 27%) during full barcode search and increased to 28% (max 31%) during right-truncated search, while memory usage stayed stable in both tests. DB CPU averaged 9% for full barcode search with no visible DB load. For right-truncated search, DB CPU varied significantly by filter: 7% without filters, 8% with the description filter, 13% with spikes to 15% when the date filter was applied — correlating directly with increased response times.

Recommendations & Jiras

https://folio-org.atlassian.net/browse/MODAUD-312

Test Runs

Test 

Search Type

Filters Tested

Pagination Tested

Status

TR-1

Full Barcode Search

None, Date Filter, Description Filter

LIMIT 100
OFFSET 0, 100K, 3.5M, 5.8M

Completed

TR-2

Right-Truncated Barcode Search

None, Date Filter, Description Filter

LIMIT 100
OFFSET 0, 100K, 3.5M, 5.8M

Completed

 

Results

Test №1

This table contains Circulation Log full item barcode search durations across multiple offsets and filter combinations.
Response times are stable across all offsets and filters. Averages range from 64 to 102 ms; 95th percentiles stay within 104–208 ms. Adding date or description filters does not impact. Pagination depth has no impact.

 

 

Default

With date filter

With description filter

Response Times, ms

Average

95% Line

Average

95% Line

Average

95% Line

LIMIT 100 OFFSET 0

102

208

69

115

77

138

LIMIT 100 OFFSET 100000

68

144

69

110

74

128

LIMIT 100 OFFSET 3500000

64

104

65

135

70

115

LIMIT 100 OFFSET 5800000 

77

127

72

127

72

117

 

Test №2
This table contains Circulation Log Right-Truncated item barcode search durations across multiple offset values and filter combinations.
Default and description-filtered queries show stable performance (avg 158–226 ms). However, the date filter shows average response times jumping to ~2 sec and 95th percentile exceeding 2,2sec. This pattern is consistent across all offset values.

 

 

Default

With date filter

With description filter

Response Times, ms

Average

95% Line

Average

95% Line

Average

95% Line

LIMIT 100 OFFSET 0

158

232

1972

2194

192

266

LIMIT 100 OFFSET 100000

174

259

2006

2268

226

326

LIMIT 100 OFFSET 3500000

171

252

2017

2287

210

310

LIMIT 100 OFFSET 5800000 

170

260

2006

2271

207

304

 

Resources Utilization for Test 1

Service CPU Utilization

mod-audit CPU averaged 22% (max 27%)

image-20260605-094839.png

 

Service Memory Utilization 

mod-audit Memory usage was stable

image-20260605-095112.png

 

DB CPU Utilization

DB CPU averaged 9% (max 10%)

image-20260605-095346.png

DB Connections

image-20260605-100109.png

DB load

No visible load was observed during tests

image-20260605-095913.png

 

 

Resources Utilization for Test 2

Service CPU Utilization

mod-audit CPU averaged 28% (max 31%)

image-20260605-101041.png

Service Memory Utilization 

mod-audit Memory usage was stable

image-20260605-101245.png

 

DB CPU Utilization

DB CPU varied by filter: 7% (no filter), 13% with spikes to 15% (date filter), and 8% (description filter).

image-20260605-102455.png

DB Connections

image-20260605-103030.png

 

DB load

image-20260605-103822.png
SELECT jsonb FROM cs00000int_0001_mod_audit.circulation_logs WHERE ((CASE WHEN length(lower(f_unaccent(?))) <= ? THEN left(lower(f_unaccent(circulation_logs.jsonb->>?)),?) >= lower(f_unaccent(?)) ELSE left(lower(f_unaccent(circulation_logs.jsonb->>?)),?) >= left(lower(f_unaccent(?)),?) AND lower(f_unaccent(circulation_logs.jsonb->>?)) >= lower(f_unaccent(?)) END) AND (CASE WHEN length(lower(f_unaccent(?))) <= ? THEN left(lower(f_unaccent(circulation_logs.jsonb->>?)),?) <= lower(f_unaccent(?)) EL SELECT jsonb FROM cs00000int_0001_mod_audit.circulation_logs WHERE get_tsvector(f_unaccent(circulation_logs.jsonb->>?)) @@ tsquery_phrase(f_unaccent(?)) ORDER BY left(lower(f_unaccent(circulation_logs.jsonb->>?)),?) DESC, lower(f_unaccent(circulation_logs.jsonb->>?)) DESC LIMIT ? OFFSET ? SELECT jsonb FROM cs00000int_0001_mod_audit.circulation_logs WHERE (lower(f_unaccent(circulation_logs.jsonb->>?)) LIKE lower(f_unaccent(?))) AND (get_tsvector(f_unaccent(circulation_logs.jsonb->>?)) @@ tsquery_phrase(f_unaccent(?))) ORDER BY left(lower(f_unaccent(circulation_logs.jsonb->>?)),?) DESC, lower(f_unaccent(circulation_logs.jsonb->>?)) DESC LIMIT ? OFFSET ?

 

Appendix

Infrastructure

PTF - environment asptc2

  • 8 r7i.2xlarge EC2 instances located in US East (N. Virginia)us-east-1

  • 1 instance of db.r7g.xlarge database instance: Writer instance

  • MSK ptf-loc

    • 6 m7g.large brokers in 2 zones

    • Apache Kafka version 3.9.x

    • EBS storage volume per broker 300 GiB

  • OpenSearch 2.19 ptf-test cluster

    • r7g.2xlarge.search 4 data nodes

    • r7g.large.search 3 dedicated master nodes

 

 

Module Task Definition Revision Module Version Task Count Mem Hard Limit Mem Soft Limit CPU Units Xmx Metaspace Size Max Metaspace Size mod-remote-storage 3 mod-remote-storage:4.1.0-SNAPSHOT.204 2 4920 4472 64 3960 512 512 mod-remote-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-ebsconet 2 mod-ebsconet:3.0.0-SNAPSHOT.100 2 1248 1024 64 700 128 256 mod-ebsconet - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-mosaic 3 mod-mosaic:2.0.0-SNAPSHOT.21 2 1024 896 64 768 88 128 mod-mosaic - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 edge-sip2 2 edge-sip2:4.1.0-SNAPSHOT.396.tls 2 1024 896 64 768 88 128 mod-consortia-keycloak 2 mod-consortia-keycloak:2.0.0-SNAPSHOT.86.tls 2 5136 4776 512 4416 384 512 mod-consortia-keycloak - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-tags 4 mod-tags:3.1.0-SNAPSHOT.163 2 1024 896 64 768 88 128 mod-tags - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 edge-courses 3 edge-courses:1.8.0-SNAPSHOT.1188.tls 2 1024 896 64 768 88 128 mod-inventory-update 2 mod-inventory-update:5.1.1-SNAPSHOT.141 2 1024 896 64 768 88 128 mod-inventory-update - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-notify 2 mod-notify:3.6.0-SNAPSHOT.287 2 1024 896 64 768 88 128 mod-notify - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-configuration 1 mod-configuration:5.13.0-SNAPSHOT.381 2 1024 896 64 768 88 128 mod-configuration - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 folio-keycloak 3 folio-keycloak:26.5.1.tls 3 2750 2250 1536 1536 0 0 edge-caiasoft 2 edge-caiasoft:3.1.0-SNAPSHOT.139.tls 2 1024 896 64 768 88 128 mod-licenses 2 mod-licenses:6.4.0-SNAPSHOT.201 2 2480 2312 64 1792 384 512 mod-licenses - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-gobi 2 mod-gobi:4.0.0-SNAPSHOT.285 2 1024 896 64 768 88 128 mod-gobi - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-graphql 3 mod-graphql:1.15.1-SNAPSHOT.480 2 1024 896 64 768 88 128 mod-graphql - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-erm-usage 2 mod-erm-usage:5.3.0-SNAPSHOT.166 2 2800 2550 64 1800 384 512 mod-erm-usage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-batch-print 3 mod-batch-print:1.4.1-SNAPSHOT.35 2 1024 896 64 768 88 128 mod-batch-print - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-copycat 2 mod-copycat:1.10.0-SNAPSHOT.254 2 1024 896 64 768 88 128 mod-copycat - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-entities-links 3 mod-entities-links:5.1.0-SNAPSHOT.152 2 2592 2483 64 1440 0 1024 mod-entities-links - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 pub-edge 1 pub-edge:2025.09.19 2 1024 896 64 768 0 0 mod-orders 2 mod-orders:14.0.0-SNAPSHOT.495 2 2048 1740 64 1024 384 512 mod-orders - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 kong 3 kong:3.9.2 2 6144 6144 64 768 88 128 edge-patron 5 edge-patron:5.5.0-SNAPSHOT.237.tls 2 1024 896 64 768 88 128 edge-inn-reach 3 edge-inn-reach:4.1.0-SNAPSHOT.97.tls 2 1024 896 64 768 88 128 mod-users-bl 2 mod-users-bl:8.1.0-SNAPSHOT.366 2 1440 1152 64 922 88 128 mod-users-bl - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-oa 6 mod-oa:3.3.0-SNAPSHOT.82 2 4024 3024 65 2024 96 160 mod-oa - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 65 256 0 96 mod-inventory-storage 5 mod-inventory-storage:30.1.0-SNAPSHOT.895 2 4096 3690 512 3067 384 512 mod-inventory-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 768 512 256 0 128 mod-invoice 2 mod-invoice:7.0.0-SNAPSHOT.261 2 1440 1152 64 922 88 128 mod-invoice - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-user-import 1 mod-user-import:3.11.0-SNAPSHOT.228 2 1024 896 64 768 88 128 mod-user-import - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-sender 2 mod-sender:1.16.0-SNAPSHOT.121 2 1024 896 64 768 88 128 mod-sender - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mgr-tenant-entitlements 3 mgr-tenant-entitlements:4.0.0-SNAPSHOT.1469.tls 2 1024 896 65 512 88 256 mod-login-keycloak 2 mod-login-keycloak:4.1.0-SNAPSHOT.1120.tls 2 1024 896 128 512 88 256 mod-login-keycloak - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-data-export-worker 3 mod-data-export-worker:3.6.0-SNAPSHOT.323 2 3072 2800 64 2048 384 512 mod-data-export-worker - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 768 64 256 0 128 mod-circulation-storage 2 mod-circulation-storage:17.6.0-SNAPSHOT.456 2 2880 2592 64 1814 384 512 mod-circulation-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-calendar 2 mod-calendar:4.1.0-SNAPSHOT.259 2 2048 1536 64 1024 96 256 mod-calendar - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-event-config 2 mod-event-config:2.11.0-SNAPSHOT.130 2 1024 896 64 768 88 128 mod-event-config - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-courses 1 mod-courses:1.6.0-SNAPSHOT.175 2 1024 896 64 768 88 128 mod-courses - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-circulation-item 3 mod-circulation-item:2.1.0-SNAPSHOT.43 2 1024 896 64 0 0 0 mod-circulation-item - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-email 2 mod-email:1.21.0-SNAPSHOT.151 2 2800 2550 64 1800 384 512 mod-email - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-di-converter-storage 2 mod-di-converter-storage:2.6.0-SNAPSHOT.162 2 1024 896 64 768 88 128 mod-di-converter-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-pubsub 2 mod-pubsub:2.18.0-SNAPSHOT.258 2 1536 1440 1024 922 384 512 mod-pubsub - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 512 256 0 96 edge-orders 5 edge-orders:4.0.0-SNAPSHOT.200.tls 2 1024 896 64 768 88 128 edge-rtac 5 edge-rtac:3.2.0-SNAPSHOT.294.tls 2 1024 896 64 768 88 128 mod-linked-data-import 4 mod-linked-data-import:2.0.0-SNAPSHOT.13 2 4500 4000 64 3000 128 512 mod-linked-data-import - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-rtac-cache 2 mod-rtac-cache:1.2.0-SNAPSHOT.18 2 1024 896 64 768 88 128 mod-rtac-cache - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-users 2 mod-users:19.7.0-SNAPSHOT.752 2 1024 896 64 768 88 128 mod-users - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-template-engine 2 mod-template-engine:1.24.0-SNAPSHOT.144 2 1024 896 64 768 88 128 mod-template-engine - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-audit 3 mod-audit:3.1.0-SNAPSHOT.246 2 1024 896 64 768 88 128 mod-audit - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-source-record-manager 3 mod-source-record-manager:4.1.0-SNAPSHOT.442 2 4500 4000 64 3000 384 512 mod-source-record-manager - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-feesfines 2 mod-feesfines:19.5.0-SNAPSHOT.229 2 1024 896 64 768 88 128 mod-feesfines - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 edge-users 3 edge-users:2.3.0-SNAPSHOT.1380.tls 2 1024 896 64 768 88 128 mod-service-interaction 1 mod-service-interaction:4.3.0-SNAPSHOT.158 2 2048 1844 64 1290 384 512 mod-service-interaction - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-dcb 2 mod-dcb:2.1.0-SNAPSHOT.107 2 2048 1844 64 1292 384 512 mod-dcb - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-patron 2 mod-patron:6.5.0-SNAPSHOT.215 2 1024 896 64 768 88 128 mod-patron - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 edge-connexion 5 edge-connexion:1.5.1-SNAPSHOT.115.tls 2 1024 896 64 768 88 128 mod-data-export-spring 3 mod-data-export-spring:3.7.0-SNAPSHOT.208 1 2048 1844 64 1536 384 512 mod-data-export-spring - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-organizations-storage 2 mod-organizations-storage:5.1.0-SNAPSHOT.169 2 1024 896 64 700 88 128 mod-organizations-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-ncip 5 mod-ncip:1.18.0-SNAPSHOT.306 2 1024 896 64 768 88 128 mod-ncip - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-agreements 2 mod-agreements:7.4.0-SNAPSHOT.288 2 4096 4096 64 4096 0 0 mod-agreements - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-organizations 2 mod-organizations:2.3.0-SNAPSHOT.130 2 1024 896 64 768 88 128 mod-organizations - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-serials-management 2 mod-serials-management:2.2.0-SNAPSHOT.90 2 2780 2312 64 1792 384 896 mod-serials-management - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-settings 2 mod-settings:1.4.0-SNAPSHOT.94 2 1024 896 64 768 88 128 mod-settings - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-search 3 mod-search:6.1.0-SNAPSHOT.407 2 2592 2480 64 1440 512 1024 mod-search - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 edge-dematic 2 edge-dematic:3.1.0-SNAPSHOT.173.tls 1 1024 896 64 768 88 128 mod-data-import 5 mod-data-import:3.5.0-SNAPSHOT.251 1 2048 1844 65 1292 384 512 mod-data-import - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 65 256 0 96 mod-record-specifications 2 mod-record-specifications:3.1.0-SNAPSHOT.60 2 2048 1592 64 1440 256 512 mod-record-specifications - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-inn-reach 2 mod-inn-reach:4.1.0-SNAPSHOT.140 2 3600 3240 64 2880 512 1024 mod-inn-reach - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-orders-storage 2 mod-orders-storage:15.0.0-SNAPSHOT.309 2 1024 896 64 700 88 128 mod-orders-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-erm-usage-harvester 2 mod-erm-usage-harvester:5.3.0-SNAPSHOT.183 2 1024 896 64 768 88 128 mod-erm-usage-harvester - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-password-validator 2 mod-password-validator:4.1.0-SNAPSHOT.193 2 1440 1298 64 768 384 512 mod-password-validator - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 edge-dcb 3 edge-dcb:2.1.0-SNAPSHOT.72.tls 2 1024 896 64 768 88 128 mod-bulk-operations 3 mod-bulk-operations:2.4.0-SNAPSHOT.179 2 3072 2600 64 2048 384 512 mod-bulk-operations - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1500 768 64 256 0 128 mod-fqm-manager 2 mod-fqm-manager:4.2.0-SNAPSHOT.1263 2 3000 2600 64 2048 88 512 mod-fqm-manager - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-finance 2 mod-finance:6.0.0-SNAPSHOT.212 2 1024 896 64 768 88 128 mod-finance - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-tlr 2 mod-tlr:1.3.0-SNAPSHOT.55 2 1024 896 64 768 88 256 mod-tlr - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-lists 2 mod-lists:4.0.2-SNAPSHOT.1361 2 6000 2600 64 2048 88 512 mod-lists - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 768 715 64 256 0 96 mod-permissions 4 mod-permissions:6.8.0-SNAPSHOT.451 2 1684 1544 64 1024 384 512 mod-permissions - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-users-keycloak 2 mod-users-keycloak:4.1.0-SNAPSHOT.867.tls 4 4096 3688 128 3076 88 256 mod-users-keycloak - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-marc-migrations 2 mod-marc-migrations:3.1.0-SNAPSHOT.35 2 2880 2592 64 1814 384 512 mod-marc-migrations - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mgr-applications 2 mgr-applications:4.0.0-SNAPSHOT.1296.tls 2 1024 896 64 512 88 256 mgr-tenants 3 mgr-tenants:3.1.0-SNAPSHOT.1123.tls 2 1024 896 64 512 88 256 edge-oai-pmh 10 edge-oai-pmh:2.13.0-SNAPSHOT.204.tls 2 1512 1360 64 1440 384 512 mod-okapi-facade 3 mod-okapi-facade:4.1.0-SNAPSHOT.53.tls 2 1024 896 64 768 88 128 mod-okapi-facade - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-rtac 3 mod-rtac:3.10.0-SNAPSHOT.282 2 1024 896 64 768 88 128 mod-rtac - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-source-record-storage 2 mod-source-record-storage:6.1.0-SNAPSHOT.562 2 4500 4000 64 3000 384 512 mod-source-record-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-scheduler 2 mod-scheduler:4.1.0-SNAPSHOT.1016.tls 2 1024 896 64 512 88 256 mod-scheduler - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-circulation-bff 3 mod-circulation-bff:1.3.0-SNAPSHOT.50 2 1024 896 64 768 88 128 mod-circulation-bff - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-inventory 2 mod-inventory:22.1.0-SNAPSHOT.659 2 4096 3688 512 3076 384 512 mod-inventory - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 768 512 256 0 128 mod-requests-mediated 2 mod-requests-mediated:1.4.0-SNAPSHOT.58 2 1500 1024 64 768 88 192 mod-requests-mediated - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-linked-data 4 mod-linked-data:3.0.0-SNAPSHOT.705 2 3048 2024 64 768 88 128 mod-linked-data - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-patron-blocks 2 mod-patron-blocks:1.14.0-SNAPSHOT.189 2 1024 896 64 768 88 128 mod-patron-blocks - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-reporting 2 mod-reporting:1.6.0-SNAPSHOT.47 2 1024 896 64 0 0 0 mod-reporting - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 edge-fqm 1 edge-fqm:4.1.0-SNAPSHOT.135.tls 2 1024 896 64 768 88 128 nginx-edge 1 nginx-edge:2025.09.19 2 1024 896 64 0 0 0 mod-invoice-storage 2 mod-invoice-storage:7.0.0-SNAPSHOT.173 2 1872 1536 64 1024 384 512 mod-invoice-storage - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-reading-room 3 mod-reading-room:2.1.0-SNAPSHOT.31 2 1024 896 64 768 88 128 mod-reading-room - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-data-export 2 mod-data-export:5.5.0-SNAPSHOT.288 1 2592 2480 64 1440 88 1024 mod-data-export - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-kb-ebsco-java 2 mod-kb-ebsco-java:7.1.0-SNAPSHOT.211 2 1024 896 64 768 88 128 mod-kb-ebsco-java - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-notes 2 mod-notes:8.1.0-SNAPSHOT.361 2 1024 896 64 952 384 512 mod-notes - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96 mod-eusage-reports 3 mod-eusage-reports:3.1.1-SNAPSHOT.109 2 1024 896 64 768 88 128 mod-eusage-reports - Sidecar 1 N/A folio-module-sidecar:3.0.18.tls N/A 1024 512 64 256 0 96

 

record_type record_count Circulation Log Records 6041662

 

Methodology/Approach


1. Data preparation step

  • A dataset of 6M records was generated for testing.

  • It contained 500K unique barcodes, randomly distributed across a 1-year time range.

  • Data was generated using the following query:

WITH bc AS ( SELECT jsonb->>'barcode' AS barcode, row_number() OVER () AS rn FROM cs00000int_0001_mod_inventory_storage.item WHERE NULLIF(TRIM(jsonb->>'barcode'), '') IS NOT NULL LIMIT 500000 ), bc_cnt AS ( SELECT count(*) AS cnt FROM bc ), gen AS ( SELECT gen_random_uuid() AS new_id, gs, (gs % (SELECT cnt FROM bc_cnt)) + 1 AS idx FROM generate_series(1, 500000) gs ) INSERT INTO cs00000int_0001_mod_audit.circulation_logs (id, jsonb) SELECT g.new_id, jsonb_set( jsonb_set( jsonb_set( '{ "id": "", "date": "", "items": [ { "itemId": "27efe92f-1b5c-5b32-b6c7-48e71539b52e", "loanId": "0af86ff6-bc0f-4a62-a5ea-42976f1dc91f", "holdingId": "e8cd4664-1b53-5cc2-a139-ee2bc8229eaa", "instanceId": "243ad997-f24d-5f46-89a9-ff8b8b59c390", "itemBarcode": "" } ], "action": "Checked out", "object": "Loan", "source": "EBSCOAdmin, EBSCOAdmin", "linkToIds": { "userId": "0001ef6e-216a-4436-8ee7-42121519afe6" }, "description": "Checked out to proxy: no.", "userBarcode": "813487757", "servicePointId": "9d1b77e8-f02e-4b7f-b296-3f2042ddac54" }'::jsonb, '{id}', to_jsonb(g.new_id::text) ), '{date}', to_jsonb( to_char( now() - (random() * interval '365 days'), 'YYYY-MM-DD"T"HH24:MI:SS.MS"Z"' ) ) ), '{items,0,itemBarcode}', to_jsonb(b.barcode) ) FROM gen g JOIN bc b ON b.rn = g.idx;

2. Test Configuration:

  • 10-minute tests with 1 user invoking the following API: GET audit-data/circulation/logs.

  • Two search types were evaluated — full barcode search (e.g., itemBarcode=="37413321512263") and right-truncated barcode search (e.g., itemBarcode="3741*") — each tested across four offset (0, 100K, 3.5M, 5.8M), limit 100, and three filter combinations (None, Date Filter [1-year time range], Description Filter).

  • Barcodes for the test were retrieved using the following query:

SELECT item->>'itemBarcode' AS item_barcode, COUNT(*) AS occurrences FROM cs00000int_0001_mod_audit.circulation_logs CROSS JOIN LATERAL jsonb_array_elements(jsonb->'items') AS item WHERE NULLIF(item->>'itemBarcode', '') IS NOT NULL GROUP BY item->>'itemBarcode' ORDER BY occurrences DESC LIMIT 200;

 

Test Artifacts