Skip to content

Conversation

@hermanschaaf
Copy link
Member

@hermanschaaf hermanschaaf commented Jan 18, 2023

This adds a Nop-backend (following the naming convention set in io.NopCloser) for when no backend is specified. Using this instead of nil will make incremental resolvers simpler and give them one fewer pitfall to avoid, because it will no longer be necessary to guard every use of backend with a nil-pointer check (see two such cases within a single resolver here, for example: https://github.com/cloudquery/cloudquery/blob/main/plugins/source/stripe/resources/services/application_fees/application_fees.go). This way resolvers don't need to care what the backend is, they can just trust that the interface is implemented.

@github-actions github-actions bot added feat and removed feat labels Jan 18, 2023
@github-actions
Copy link

github-actions bot commented Jan 18, 2023

⏱️ Benchmark results

  • DefaultConcurrencyDFS-2 resources/s: 11,946
  • DefaultConcurrencyRoundRobin-2 resources/s: 11,104
  • Glob-2 ns/op: 175
  • TablesWithChildrenDFS-2 resources/s: 29,222
  • TablesWithChildrenRoundRobin-2 resources/s: 28,586
  • TablesWithRateLimitingDFS-2 resources/s: 28.35
  • TablesWithRateLimitingRoundRobin-2 resources/s: 847.4
  • BufferedScanner-2 ns/op: 9.284
  • LogReader-2 ns/op: 31.14

@kodiakhq kodiakhq bot merged commit 79f5395 into main Jan 24, 2023
@kodiakhq kodiakhq bot deleted the nop-backend branch January 24, 2023 09:43
kodiakhq bot pushed a commit that referenced this pull request Jan 24, 2023
🤖 I have created a release *beep* *boop*
---


## [1.29.0](v1.28.0...v1.29.0) (2023-01-24)


### Features

* Add NopBackend ([#616](#616)) ([79f5395](79f5395))

---
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants