• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

eresearchqut / ddb-repository / 26987305743
98%

Build:
DEFAULT BRANCH: main
Ran 05 Jun 2026 12:13AM UTC
Jobs 1
Files 3
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Jun 2026 12:11AM UTC coverage: 97.619% (-0.2%) from 97.802%
26987305743

push

github

ryan-bennett
perf: use Map for O(n) GSI item ordering in getItems and getItemsPage

The previous implementation used Array.find() to match each key from
batchGetItems results back to the GSI query order. This is O(n*m) where
n is the result set size and m is the batchGetItems response size - for
typical cases O(n²).

Replace with a Map keyed on the composite primary key (hashKey + optional
rangeKey, null-byte separated). Building the Map is O(n) and each lookup
is O(1), so the reordering step is O(n) overall.

Both getItems and getItemsPage use the same GSI→batchGetItems→reorder
pattern and receive the same fix.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

200 of 213 branches covered (93.9%)

Branch coverage included in aggregate %.

10 of 10 new or added lines in 1 file covered. (100.0%)

333 of 333 relevant lines covered (100.0%)

90.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26987305743.1 05 Jun 2026 12:13AM UTC 3
97.62
GitHub Action Run
Source Files on build 26987305743
  • Tree
  • List 3
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26987305743
  • 27aea0a4 on github
  • Prev Build on main (#26987260966)
  • Next Build on main (#26987653367)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc