Skip to main content

Questions tagged [relational-database]

A relational database is a digital database based on the relational model of data. This model organizes data into one or more tables (or "relations") of columns and rows

3votes
2answers
210views

What is a good approach to sync remote API data to a database?

Problem statement We have a remote API that can be queried to fetch some arbitrary objects (we're expecting around 500 thousand records). Our application needs fast access to this data (faster than ...
Jans Rautenbach's user avatar
2votes
3answers
333views

Should I break a large user table into smaller tables for specific roles and information?

I am designing a database for a system that has a users table. Currently, the table has around 50 columns, which include: Personal information (e.g. name, email, phone_number, address, etc.) Work-...
JayDev95's user avatar
2votes
1answer
583views

One and only one vs One in crow's foot notation

Am I using one and only one correctly? I have read so many articles online on differences between one and only one vs one and I'm still confused. I.e. a customer can exist with zero, 1 or many (...
Brendon's user avatar
17votes
8answers
4kviews

How do we distinguish between "not filled in" and "unknown" in our data store?

In our domain model "not filled in" and "unknown" are two different concepts. For example, time of death may be missing or, on the other hand, may be filled in as "unknown&...
Sergey Zolotarev's user avatar
11votes
13answers
5kviews

Does it ever make sense to have a one-to-one obligatory relationship in a relational database?

To illustrate what I mean, imagine a group of students and a group of professors in some kind of a traineeship. Every professor is to mentor one student and every student has to be mentored by one and ...
user24881603's user avatar
-1votes
2answers
138views

Should uniqueness validation be on the database level or backend codebase level in data import

There is a kinda ETL task of importing data from csv to the database in project with legacy codebase and legacy database**. Data should be validated before persisting to database. Validation includes ...
Rui's user avatar
  • 1,925
0votes
1answer
82views

if an entity depends on two other entities(that have a relationship between them) should I make the enitity depend on the relationship instead?

If I have three entities (end-user, country, tier) in my system that has relationships as follows: Where each country has its own tiers with specified points per year, and each end-user has a country ...
siba36's user avatar
0votes
0answers
74views

How to restructure a schema in order to support conditional (one of two tables) relations

I've been stuck on this for a while now so I decided to ask for some help. My SetTemplate needs to EITHER be connected directly to exerciseTemplate OR connected to exerciseTemplate through a ...
Jocko's user avatar
1vote
1answer
287views

Does it make sense to use a graph database (Neo4j) for a diagramming app?

I am developing a diagramming application and want to optimize operations with the Nodes and Relations of the diagram. Currently, I am using a relational database with tables for diagrams and nodes. ...
Maksim Murza's user avatar
3votes
1answer
450views

Object-oriented programming design with relational database tables

I want to understand what is considered best-practice to better align with OOP when handling relational databases. I cannot find any online examples where classes and a more maintainable/re-usable ...
Yannis's user avatar
-1votes
3answers
201views

Mixing up UML and non-UML diagrams

When designing a data-intensive software, or any kind of software, regardless of the platform, is it appropriate to mix UML and non-UML diagrams together in the design document of the software? For ...
Acemad's user avatar
0votes
1answer
68views

Database Modeling for Application with Many Integrations

I’m working on an application that requires many 3rd-party integrations. I’m using Postgres to store these API responses but am having trouble for a number of reasons. These objects are frequently ...
Jack's user avatar
  • 109
-2votes
2answers
243views

Designing a database schema for a website related to my town's history

I am working on digitizing old photographs, articles, ephemera, etc. related to my town's history, and I've been tasked to put these scans I've made onto a website for the public to see. There are ...
EdmundF's user avatar
3votes
2answers
184views

how to deal with schema/constraint changes in insert-only Relational DBs?

as per request, I'll reduce this whole set of questions to 1-2 core points (thanks for the feedback ;)). I'm considering using insert-only tables for keeping the history of my data. while the ...
SirCodeALot's user avatar
7votes
3answers
1kviews

Prevent analytics from crashing the production database

At the core of my business (say, an online store) is a Postgres database that stores products and transactions. During day-to-day operations, the load on the database is not heavy. However, there is ...
firstname gklsodascb's user avatar

153050per page
close