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

babelfish-for-postgresql / babelfish_extensions / 20437915388
76%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: BABEL-5844
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 22 Dec 2025 05:07PM UTC
Jobs 1
Files 120
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

22 Dec 2025 04:32PM UTC coverage: 76.179% (+0.001%) from 76.178%
20437915388

push

github

web-flow
Redefining SP_DATATYPE_INFO and SP_DATATYPE_INFO_100 Procedures via View (#4309) (#4340)

Babelfish exhibits high CPU consumption during concurrent connection establishment. Investigation reveals this is due to ANTLR parsing overhead. PyODBC connections call sp_datatype_info_100 during connection setup, causing CPU spikes from intensive ANTLR parsing.

Hence we are defining sp_datatype_info and sp_datatype_info_100 to use pre-compiled views instead of directly calling the C helper function. Views are cached and avoid repeated ANTLR parsing, resulting in lower CPU utilization during connection establishment.

We observed performance improvement as below with this view approach:

No. of Concurrent Connections	Current CPU usage with PyODBC	CPU usage after this View Approach	CPU Reduction
100	9.83%	6.72%	3.11%
200	18.51%	11.91%	6.60%
400	31.75%	20.79%	10.96%
600	44.56%	27.22%	17.34%
800	56.35%	21.96%	34.39%

Issues Resolved
Cherry-pick from #4309
BABEL-6184

Authored-by: Rucha Kulkarni ruchask@amazon.com

50427 of 66195 relevant lines covered (76.18%)

394512.53 hits per line

Jobs
ID Job ID Ran Files Coverage
1 20437915388.1 22 Dec 2025 05:07PM UTC 120
76.18
GitHub Action Run
Source Files on build 20437915388
  • Tree
  • List 120
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20437915388
  • cea18b68 on github
  • Prev Build on BABEL_4_X_DEV (#20373082433)
  • Next Build on BABEL_4_X_DEV (#20480077892)
  • Delete
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

© 2025 Coveralls, Inc