Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In Progress

Jira Legacy
serverSystem Jira
serverId01505d01-b853-3c2e-90f1-ee9b165564fc
keyPERF-100

Success criteria: 

  •  Scripts to generate the data be checked in
  •  A report showing all the queries and times.
  •  Analysis of why a query with the * token is slow or fast, if possible.

Overview:

In PERF-83 it was observed that a CQL query with the * token at the end resulted in a faster response time, despite a much higher database usage. 

There are many entities of different statuses in FOLIO. It'd be interesting to see if this pattern holds true for other statuses and CQL queries.

...

GET /circulation/loans?limit=2147483647&query=(itemId==${current_item} and status.name=="Closed*")
GET /circulation/requests?(itemId==${item_id} and (status=="Open - Awaiting pickup*" or status=="Open - Awaiting delivery*"))
GET /circulation/requests?(requesterId==${userID} and pickupServicePointId=${servicePoints_Id} and status=="Open - Awaiting pickup*")


Version:

OKAPI - Version 3.1.1

...

Test

Virtual Users

QueryDuration (sec)Rump Up (sec)

1

8

/circulation/loans?limit=2147483647&query=(itemId==${current_item} and status.name=="Closed")

180080
220

/circulation/loans?limit=2147483647&query=(itemId==${current_item} and status.name=="Closed")

200
38

/circulation/loans?limit=2147483647&query=(itemId==${current_item} and status.name=="Closed*")

80
420

/circulation/loans?limit=2147483647&query=(itemId==${current_item} and status.name=="Closed*")

200
58/circulation/requests?(itemId==[current_item] and (status=="Open - Not yet filled" or status=="Open - Awaiting delivery"))80
620/circulation/requests?(itemId==[current_item] and (status=="Open - Not yet filled" or status=="Open - Awaiting delivery"))200
78/circulation/requests?(itemId==[item_id] and (status=="Open - Not yet filled*" or status=="Open - Awaiting delivery*"))80
820/circulation/requests?(itemId==[item_id] and (status=="Open - Not yet filled*" or status=="Open - Awaiting delivery*"))200
98/circulation/requests?(requesterId==[requesterID] and pickupServicePointId=[pickPoint] and status=="Open - Not yet filled")80
1020/circulation/requests?(requesterId==[requesterID] and pickupServicePointId=[pickPoint] and status=="Open - Not yet filled")200
118/circulation/requests?(requesterId==[requesterID] and pickupServicePointId=[pickPoint] and status=="Open - Not yet filled*")80
1220/circulation/requests?(requesterId==[requesterID] and pickupServicePointId=[pickPoint] and status=="Open - Not yet filled*")200

...

Test

Virtual Users

Requests
TotalOKKO% KOReq/sMin50th pct75th pct95th pct99th pctMaxAverageLatency

1

8

GET /circulation/loans?limit=2147483647&query=(itemId==[current_item] and status.name=="Closed")

link1378813788007.6570.341.0061.0851.2353.0285.7061.0241.235
220

GET /circulation/loans?limit=2147483647&query=(itemId==[current_item] and status.name=="Closed")

link1222512143820.6716.7860.3522.4413.8154.7366.18130.1712.794.736
38

GET /circulation/loans?limit=2147483647&query=(itemId==[current_item] and status.name=="Closed*")

link13691135821090.7967.5960.3310.9961.0741.2263.20532.61.0321.226
420

GET /circulation/loans?limit=2147483647&query=(itemId==[current_item] and status.name=="Closed*")

link1254812548006.9660.3222.4383.7994.7155.469.4622.7184.715
58GET /circulation/requests?(itemId==[current_item] and (status==Open - Not yet filled or status==Open - Awaiting delivery))link69925699250039.4790.1140.1870.2040.240.3094.3280.1980.24
620GET /circulation/requests?(itemId==[current_item] and (status==Open - Not yet filled or status==Open - Awaiting delivery))link86602866020048.1060.1150.3790.4230.5130.66115.3060.3930.513
78GET /circulation/requests?(itemId==[item_id] and (status=="Open - Awaiting pickup*" or status=="Open - Awaiting delivery*"))link67688676880037.60.1180.1940.2140.260.38523.7760.2080.26
820GET /circulation/requests?(itemId==[item_id] and (status=="Open - Awaiting pickup*" or status=="Open - Awaiting delivery*"))link78697786970043.7140.1140.4110.480.6070.9698.6460.4330.607
98GET /circulation/requests?(requesterId==[requesterID] and pickupServicePointId=[pickPoint] and status=="Open - Not yet filled")link66713667130037.060.1170.1940.2150.2650.38431.6760.2110.265
1020GET /circulation/requests?(requesterId==[requesterID] and pickupServicePointId=[pickPoint] and status=="Open - Not yet filled")link79364793640044.0860.1150.410.4770.6030.993.8340.4290.603
118GET /circulation/requests?(requesterId==[requesterID] and pickupServicePointId=[pickPoint] and status=="Open - Not yet filled*")link66830668300037.1250.1160.1960.2170.2690.4012.9910.2110.269
1220GET /circulation/requests?(requesterId==[requesterID] and pickupServicePointId=[pickPoint] and status=="Open - Not yet filled*")link78824788240043.7830.1190.4130.4820.6110.9234.8930.4320.611

...