Skip to content

Conversation

@owl352
Copy link
Collaborator

@owl352 owl352 commented Dec 13, 2025

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

vercel bot commented Dec 13, 2025

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

2 participants