Skip to content

Platform Explorer backend optimization - #745

Open
owl352 wants to merge 8 commits into
developfrom
feat/fix-contract-name
Open

owl352 wants to merge 8 commits into
developfrom
feat/fix-contract-name

Conversation

@owl352

@owl352 owl352 commented Dec 13, 2025 •

Copy link
Copy Markdown
Collaborator

Issue

At this moment we had unoptimizaed data contract endpoints, which have unoptimized sql queries and unnecessary data.
Also identity search by DPNS doesn't contians limits and pages. As result, for query with name test we process around 300 identities in one request.

Things done

  • Added data_contract_names table to indexer DB
  • Removed field name from data_contracts table
  • Updated data contracts queries for new table
  • Removed tokens count query from getDataContractsByName()
  • Added limit, page and order for getIdentitiesByDPNSName()
  • For identities section in search added limit for 50 identities per query by dpns and in order desc (from newer names to older)
  • Updated fixtures
  • Updated tests
  • Updated README.md

@owl352 owl352 self-assigned this Dec 13, 2025
@owl352 owl352 added indexer Related to indexer module backend Related to backend (API) labels Dec 13, 2025
@vercel

vercel Bot commented Dec 13, 2025 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
platform-explorer Ready Ready Preview, Comment Dec 13, 2025 3:29am

@owl352
owl352 marked this pull request as ready for review December 13, 2025 03:34

This branch was successfully deployed

1 active deployment
Preview — b952a04f Deployed Dec 13, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Related to backend (API) indexer Related to indexer module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant