Skip to content

chore: avoid scanning all schemas and use limit 1 - #6396

Merged
achettyiitr merged 1 commit into
masterfrom
chore.get-schemas-limit-1
Oct 21, 2025
Merged

achettyiitr merged 1 commit into
masterfrom
chore.get-schemas-limit-1

Conversation

@achettyiitr

@achettyiitr achettyiitr commented Sep 30, 2025 •

Copy link
Copy Markdown
Member

Description

  • We are unnecessarily scanning around 608MB for grafanainfs and then taking the first entry and discarding others while scanning schemas. Instead, if we need one single entry, we can put a limit of 1, it’s coming around 32MB. Notion link.
Screenshot 2025-09-15 at 1 54 57 PM
  • More details in here.

Linear Ticket

  • Resolves WAR-1131

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@achettyiitr achettyiitr changed the title chore: get schemas limit 1 chore: avoid scanning all schemas and use limit 1 Sep 30, 2025
@achettyiitr
achettyiitr force-pushed the chore.get-schemas-limit-1 branch from e7ebd51 to 18ec7a5 Compare October 17, 2025 10:15
@achettyiitr
achettyiitr force-pushed the chore.get-schemas-limit-1 branch from 18ec7a5 to 9885177 Compare October 17, 2025 11:31
@codecov

codecov Bot commented Oct 17, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.76%. Comparing base (f714b32) to head (9885177).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6396      +/-   ##
==========================================
+ Coverage   77.75%   77.76%   +0.01%     
==========================================
  Files         529      529              
  Lines       70344    70345       +1     
==========================================
+ Hits        54697    54705       +8     
+ Misses      12823    12818       -5     
+ Partials     2824     2822       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@achettyiitr
achettyiitr merged commit 8bb69ee into master Oct 21, 2025
@achettyiitr
achettyiitr deleted the chore.get-schemas-limit-1 branch October 21, 2025 07:50
This was referenced Oct 27, 2025
mihir20 pushed a commit that referenced this pull request Oct 27, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.62.0-rc.1](v1.61.0...v1.62.0-rc.1)
(2025-10-27)


### Features

* introduce circuit breakers for oauth
([#6411](#6411))
([b9ed172](b9ed172))


### Bug Fixes

* deltalake fetch table attributes
([#6455](#6455))
([49907dc](49907dc))
* destination namespaces api to contain tablename filter
([#6388](#6388))
([61cffa4](61cffa4))
* repo cardinatlity for warehouse queries
([#6451](#6451))
([ac9adc4](ac9adc4))


### Miscellaneous

* always emit transformer_outgoing_request_latency metric
([#6454](#6454))
([33b742c](33b742c))
* avoid scanning all schemas and use limit 1
([#6396](#6396))
([8bb69ee](8bb69ee))
* bump rudder-go-kit to 0.63.4
([#6457](#6457))
([d499351](d499351))
* cleanup Avoid using beigntx within repo package and instead use
WithTx.
([#6389](#6389))
([21b7129](21b7129))
* improve cron tracker
([#6397](#6397))
([82407f4](82407f4))
* improve logging reporting event name trimming
([#6424](#6424))
([ce4d56d](ce4d56d))
* improve pending uploads
([#6399](#6399))
([717f6a6](717f6a6))
* improve populate table level schemas
([#6395](#6395))
([a0aa222](a0aa222))
* improve table level schemas
([#6398](#6398))
([a2d3786](a2d3786))
* remove monitor database
([#6393](#6393))
([a02c218](a02c218))
* remove unused oauthV2Enabled logger
([#6465](#6465))
([bf55861](bf55861))
* retaining both pickup query throttling configuration key options
([#6453](#6453))
([a51f395](a51f395))
* **router:** pickup query throttling should be enabled by default
([#6447](#6447))
([ff18dde](ff18dde))
* security improvements
([#6430](#6430))
([ce4d56d](ce4d56d))
* simplify pickup throttling configuration
([#6460](#6460))
([7fb035b](7fb035b))
* unused dependencies
([#6392](#6392))
([8e585b7](8e585b7))
* use org-wide docker registry mirror configuration
([#6444](#6444))
([f714b32](f714b32))
* using go-kit maxprocs
([#6433](#6433))
([674ab55](674ab55))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
mihir20 pushed a commit that referenced this pull request Oct 28, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.62.0](v1.61.0...v1.62.0)
(2025-10-27)


### Features

* introduce circuit breakers for oauth
([#6411](#6411))
([b9ed172](b9ed172))


### Bug Fixes

* deltalake fetch table attributes
([#6455](#6455))
([49907dc](49907dc))
* destination namespaces api to contain tablename filter
([#6388](#6388))
([61cffa4](61cffa4))
* repo cardinatlity for warehouse queries
([#6451](#6451))
([ac9adc4](ac9adc4))


### Miscellaneous

* always emit transformer_outgoing_request_latency metric
([#6454](#6454))
([33b742c](33b742c))
* avoid scanning all schemas and use limit 1
([#6396](#6396))
([8bb69ee](8bb69ee))
* bump rudder-go-kit to 0.63.4
([#6457](#6457))
([d499351](d499351))
* cleanup Avoid using beigntx within repo package and instead use
WithTx.
([#6389](#6389))
([21b7129](21b7129))
* improve cron tracker
([#6397](#6397))
([82407f4](82407f4))
* improve logging reporting event name trimming
([#6424](#6424))
([ce4d56d](ce4d56d))
* improve pending uploads
([#6399](#6399))
([717f6a6](717f6a6))
* improve populate table level schemas
([#6395](#6395))
([a0aa222](a0aa222))
* improve table level schemas
([#6398](#6398))
([a2d3786](a2d3786))
* remove monitor database
([#6393](#6393))
([a02c218](a02c218))
* remove unused oauthV2Enabled logger
([#6465](#6465))
([bf55861](bf55861))
* retaining both pickup query throttling configuration key options
([#6453](#6453))
([a51f395](a51f395))
* **router:** pickup query throttling should be enabled by default
([#6447](#6447))
([ff18dde](ff18dde))
* security improvements
([#6430](#6430))
([ce4d56d](ce4d56d))
* simplify pickup throttling configuration
([#6460](#6460))
([7fb035b](7fb035b))
* unused dependencies
([#6392](#6392))
([8e585b7](8e585b7))
* use org-wide docker registry mirror configuration
([#6444](#6444))
([f714b32](f714b32))
* using go-kit maxprocs
([#6433](#6433))
([674ab55](674ab55))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants