New answers tagged database-design
Best practices
0 votes
0 replies
0 views
How do I scale a notification + activity log system without hardcoding action types and categories everywhere?
Ask 1 (specific researched non-duplicate) question. https://stackoverflow.com/tour https://stackoverflow.com/help/how-to-ask https://stackoverflow.com/help
Best practices
0 votes
0 replies
0 views
Does an alias table need a primary key? Is the key just a composite of all the columns?
I went with your suggestion of "A combined unique key on game id + game name". And FYI unfortunately names can be repeated. Some examples include "Wizard" and "Samurai".
Best practices
1 vote
0 replies
0 views
Does an alias table need a primary key? Is the key just a composite of all the columns?
A combined unique key on game id + game name would make sense, if you want to prevent that you insert the same data twice. If the game ID for "The Settlers of Catan" is 37, and you already ...
Best practices
0 votes
0 replies
0 views
Does an alias table need a primary key? Is the key just a composite of all the columns?
Thanks but, while I know that making a primary key using both columns is considered best practice, I'm just not sure why. For my other tables, I can see the primary key helps with joins or quick ...
Best practices
0 votes
0 replies
0 views
Does an alias table need a primary key? Is the key just a composite of all the columns?
site:stackoverflow.com how to decide on primary key
Best practices
0 votes
0 replies
0 views
How to pass very large ID sets (500K–5M) to ClickHouse queries using clickhouse-cs (.NET)? any industry guidlines?
This site uses English please.
Best practices
0 votes
0 replies
0 views
How to pass very large ID sets (500K–5M) to ClickHouse queries using clickhouse-cs (.NET)? any industry guidlines?
best approach store your 5M ids in Log or ReplicatedMergeTree table in all servers then use id IN (SELECT id FROM ids_table) 5M ids is not so much, and if you use http+gzip encoding it could be 5-15M ...
Best practices
0 votes
0 replies
0 views
Best practices for designing a GridDB schema for IoT time-series sensor data
Nothing in the absurd discussions functionality changes what "a" question is. It allows a larger range of questions. I have made no mistake. PS Re magic links: Yeah I keep thinking this is ...
Best practices
0 votes
0 replies
0 views
Best practices for designing a GridDB schema for IoT time-series sensor data
Actually @PhilipXY this is one of the new "discussion" questions (this one is a "Best Practises") and as such does not need to ask a single specific question like a regular Q&A ...
Best practices
0 votes
0 replies
0 views
Best practices for designing a GridDB schema for IoT time-series sensor data
Ask 1 (specific researched non-duplicate) question. https://stackoverflow.com/tour https://stackoverflow.com/help/how-to-ask https://stackoverflow.com/help How much research effort is expected of ...
Best practices
0 votes
0 replies
0 views
What should the data structure of a help system for a dashboard web app look like?
You seem to have two columns in the tourinfo table that seem to store multiple data points as column value. You should normalise those columns. Besides these, it is pretty difficult to comment on a ...
Best practices
0 votes
0 replies
0 views
What should the data structure of a help system for a dashboard web app look like?
I would use these tables as a starting point: tooltips id, page_id, title, content, selector, position, etc. tours id, title, etc. tour_tooltips id, tour_id, tooltip_id, index_order This allows for ...
Top 50 recent answers are included
Related Tags
database-design × 24249database × 9332
mysql × 6554
sql × 5675
sql-server × 2113
relational-database × 1821
postgresql × 1552
php × 1300
database-schema × 973
ruby-on-rails × 787
mongodb × 735
data-modeling × 663
foreign-keys × 652
nosql × 626
c# × 573
architecture × 571
entity-relationship × 521
oracle-database × 518
django × 455
database-normalization × 448
schema × 442
java × 410
performance × 401
sqlite × 390
normalization × 374