Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

[Bug]: marketplace.getAllListings() is cripplingly slow. #494

@skoshx

Description

@skoshx

Prerequisites

  • I have checked that @thirdweb-dev/sdk is on the latest stable version and the bug still exists.
  • I have checked existing issues and I was unable to find a duplicate of this.

Optional

  • I am willing to contribute a PR that fixes the problem with some guidance.

Describe the bug
I have a marketplace contract created with ThirdWeb. I have 2 direct listings on my marketplace. When i retrieve listings from the marketplace with the ThirdWeb SDK, it takes up to 10 seconds, even when using Alchemy provider. This results in page loads up to 10 seconds, which is simply unacceptable from an end-users perspective.

Expected behavior
Getting marketplace listings should be a fast operation, so that user's don't need to wait ages for listings to load.

Screenshots
If applicable, add screenshots to help explain your problem.

Package versions (please complete the following information):

  • @thirdweb-dev/sdk: [^2.3.11]
  • node: [v16.13.0]
  • typescript (if applicable): [~4.6.2]
  • Any other build tools (react, next, angular, vue, etc.): [vite]

Reproduction link
If you have a reproducible project on CodeSandbox, Replit, or GitHub, link it here. (This will make it much easier for us to reproduce and fix your issue.)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions