1

This is a follow up question to Is Postgres ideal for Many to Many data (M:N) which keeps increasing?

To give an overview, Events and Participants are the main entities. There are 1000 events and 10M participants for each event.

Query : In Event_Participant_Table, Get Participants who registered for an event

The table contains 1000 * 10M records.

Do we need to search all 1000 * 10M records and how efficiently can we partition this in PostgreSQL as previously the query is per defined eventId.

Postgres : 12+

Vérace
31k9 gold badges73 silver badges86 bronze badges
asked Aug 10, 2021 at 15:20
2
  • 1
    Why do you say the data is hierarchical - it isn't. Hierarchical data (for me anyway) is CEO -> COO -> Senior Technical Manager -> Project Manager -> Senior Programmer -> Junior Programmer... it's normally various forms of trees - what you have is data which are related in that participants (table) can register for an event (table) - there's no hierarchy here! I was going to edit the previous question, but I thought I'd let you do it - if you agree with me? And I've already more or less answsered this one in my previous answer.I can hack out the answer with the 10Bn benchmark and put it here? Commented Aug 10, 2021 at 15:27
  • 1
    It's actually at one level tree. Events has Participants. Event 1 -> Event 1 participants, Event 2 -> Event 2 participants .... Commented Aug 10, 2021 at 15:30

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.