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

🔖 Medium PSQL for v8 #277

Merged
merged 1 commit into from
Oct 25, 2023
Merged

🔖 Medium PSQL for v8 #277

merged 1 commit into from
Oct 25, 2023

Conversation

vikiival
Copy link
Member

Thank you for your contribution to the KodaDot Indexer.
👇 _ Let's make a quick check before the contribution.

PR type

  • Bugfix
  • Feature
  • Refactoring

Context

canceling statement due to statement timeoutSELECT ce.id, ce.name, ce.meta_id as metadata, me.image, ce.issuer, COUNT(distinct ne.meta_id) as unique, COUNT(distinct ne.current_owner) as unique_collectors, COUNT(distinct ne.current_owner) as sold, COUNT(ne.*) as total, AVG(ne.price) as average_price, MIN(NULLIF(ne.price, 0)) as floor_price, COALESCE(MAX(e.m...ALESCE(SUM(e.meta::bigint), 0) as volume, COUNT(e.*) as buys, COUNT(em.*) as emote_coEFT JOIN metadata_entity me on ce.meta_id = me.id etadata_entity me on ce.meta_id = me.id LEFT JOIN nft_entity ne on ce.id = ne.collection_id LEFT JOIN emote em on ne.id = em.nft_id JOIN event e on ne.id = e.nft_id WHERE e.interaction = 'BUY' GROUP BY ce.id, me.image, ce.name ORDER BY volume DESC LIMIT 450
{"state_code":"57014"}
25.10.2023 12:48:38

@vikiival vikiival merged commit b493de2 into release-squid Oct 25, 2023
1 check passed
@vikiival vikiival deleted the fix/v8-medium-psql branch October 25, 2023 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant