Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

接口性能问题 #51

Open
4 tasks
mfuuzy opened this issue Aug 2, 2024 · 0 comments · Fixed by #54
Open
4 tasks

接口性能问题 #51

mfuuzy opened this issue Aug 2, 2024 · 0 comments · Fixed by #54
Assignees
Labels
enhancement New feature or request

Comments

@mfuuzy
Copy link
Collaborator

mfuuzy commented Aug 2, 2024

下面这个请求大概需要2.5秒左右的时间(在海外服务器上请求)

  • 1. rgbppLatestTransactions 的查询时间超过 2.5 秒
curl -o /dev/null -s -w '%{time_total}' 'https://testnet-api.explorer.utxostack.network/graphql' \
  -H 'Accept-Language: zh-CN,zh;q=0.9' \
  -H 'Connection: keep-alive' \
  -H 'Origin: https://utxo-stack-explorer-git-fix-issues-cell-studio.vercel.app' \
  -H 'Referer: https://utxo-stack-explorer-git-fix-issues-cell-studio.vercel.app/' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: cross-site' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36' \
  -H 'accept: application/graphql-response+json, application/json' \
  -H 'content-type: application/json' \
  -H 'sec-ch-ua: "Not)A;Brand";v="99", "Google Chrome";v="127", "Chromium";v="127"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  --data-raw '{"query":"\n        query RgbppLatestTransactions {\n          rgbppLatestTransactions(page: 1, pageSize: 10) {\n            txs {\n              ckbTxHash\n              btcTxid\n              leapDirection\n              blockNumber\n              timestamp\n              ckbTransaction {\n                blockNumber\n                hash\n                fee\n                size\n                inputs {\n                  status {\n                    consumed\n                    txHash\n                    index\n                  }\n                  txHash\n                  index\n                  capacity\n                  lock {\n                    codeHash\n                    hashType\n                    args\n                  }\n                  xudtInfo {\n                    symbol\n                    amount\n                    decimal\n                  }\n                }\n                outputs {\n                  txHash\n                  index\n                  capacity\n                  lock {\n                    codeHash\n                    hashType\n                    args\n                  }\n                  xudtInfo {\n                    symbol\n                    amount\n                    decimal\n                  }\n                  status {\n                    consumed\n                    txHash\n                    index\n                  }\n                }\n              }\n              btcTransaction {\n                blockHeight\n                blockHash\n                txid\n                version\n                size\n                locktime\n                weight\n                fee\n                confirmed\n              }\n            }\n            total\n            pageSize\n          }\n        }\n      ","operationName":"RgbppLatestTransactions"}'
@mfuuzy mfuuzy self-assigned this Aug 2, 2024
@Flouse Flouse added the enhancement New feature or request label Aug 2, 2024
@ahonn ahonn linked a pull request Aug 2, 2024 that will close this issue
@ahonn ahonn closed this as completed in #54 Aug 2, 2024
@Flouse Flouse reopened this Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants