# How to Build Efficient Database (Tournament Brackets)

**URL:** <https://forum.bubble.io/t/how-to-build-efficient-database-tournament-brackets/77492>\
**Category:** Database\
**Created:** [January 28, 2020, 4:07pm UTC](https://forum.bubble.io/t/how-to-build-efficient-database-tournament-brackets/77492 "2020-01-28T16:07:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![8910billiards](https://avatars.discourse-cdn.com/v4/letter/8/87869e/32.png) [@8910billiards](https://forum.bubble.io/u/8910billiards)\
**Post date:** [January 28, 2020, 4:07pm UTC](https://forum.bubble.io/t/how-to-build-efficient-database-tournament-brackets/77492/1 "2020-01-28T16:07:09Z")

</div>

I have been at this for a while now and still can’t seem to get my head wrapped around the best way to build the database for my site.

I am building a tournament bracket site.

An example:  
64 Team bracket Double elimination = 127 games  
Each game can have 15 plus fields of data = 1905+ total fields in Data Table

Functions:

1. View Tournament
2. Run/Edit tournament in progress
3. Search/display for data by (Player/tournament)

I’m a little numb thinking I need to create almost 2000 fields of data and then correctly place them on a page where I view and run tournaments. Not to mention pull that data out to search and display like #3 above

Any guidance or source I can read about this type of structure.

These type of site exist to run tournaments, so I know it is possible. I just need help figuring out the most efficient way to build the Database so I don’t go creating 2000 plus Fields and then find out there is a better way. 🙂

Possible Fields for 1 Game  
Player 1 (user)  
Player 2 (user)  
Player 1 Race (#)  
Player 2 Race (#)  
Player 1 Score (#)  
Player 2 Score (#)  
Game 1 Winner (User)  
Game 1 Loser (User)  
Game 1 Lag Winner  
Game 1 Start time  
Game 1 End time  
Game 1 Table #  
Game 1 Scheduled Time  
etc.

Wondering if there is a way to use the New Options Sets to make more efficient

Thanks  
Scott

---

<div class="post-metadata">

**Author:** ![boston85719](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/boston85719/32/77286_2.png) [@boston85719](https://forum.bubble.io/u/boston85719)\
**Post date:** [January 28, 2020, 5:31pm UTC](https://forum.bubble.io/t/how-to-build-efficient-database-tournament-brackets/77492/2 "2020-01-28T17:31:19Z")

</div>

Check out this post I put up a couple of days ago

> [@How to learn about database models and database structure](http://forum.bubble.io/t/how-to-learn-about-database-models/77003):
>
> I feel that a lot of new users struggle with bubble, not just because there is a learning curve to the bubble platform itself, but because most are non-coders and do not have a background in database design. Personally, once I began to understand database design a bit more, it had profound impacts on how I was able to build using bubble, especially when it came to ease of manipulating data. I also feel, that a lot of new users forget about Google…that powerful search engine that can point you …

There are other posts on the forum about database as well.

Mostly you need to understand databases as a general concept of the way data can be stored and related so that you can understand how you need to retrieve it for display and manipulation. Then you can plan how your database should be set up.

---

<div class="post-metadata">

**Author:** ![1david2hot](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/1david2hot/32/88509_2.png) [@1david2hot](https://forum.bubble.io/u/1david2hot)\
**Post date:** [July 22, 2021, 2:28am UTC](https://forum.bubble.io/t/how-to-build-efficient-database-tournament-brackets/77492/3 "2021-07-22T02:28:22Z")

</div>

Boosting this post to see if anyone has a solution or idea to completing this. I haven’t been able to figure this out.
