Skip to main content

Questions tagged [database-design]

For questions about structuring the data within a database. How to lay out tables, whether to use a relational DB or not, etc.

0 votes
0 answers
58 views

So I have the following structure: Campaign <--many-to-many--> buyers Buyers --has Many--> resources I want users to be able to set a resource cap on a particular Buyer-Campaign pair, so ...
Yusuf Bouzekri's user avatar
2 votes
0 answers
164 views

I’ve worked with database schemas that often had a soft delete field indicator in tables (such as deleted_at, invalidated, and so on) to keep track of the deletion status of records. It’s obvious that ...
ikiwq's user avatar
  • 193
1 vote
1 answer
146 views

I’m implementing the authentication module in a modular monolith built with NestJS. Initial Draft In the first draft, the User entity included the hashed password, refresh token, and refresh token ...
captncrunch's user avatar
0 votes
1 answer
172 views

I have an excel macro that imports daily share price files, and finds the highest price for a share after a given date. Each of these daily stock price files has ~1000 rows of data. Currently I have ...
Frankie139's user avatar
0 votes
2 answers
163 views

I am trying to create a notification system similar to Instagram, for the lack of better comparasion. The Goal: Getting user notifications in a unify way, for easy unparsing and displaying to user. ...
eliezra236's user avatar
1 vote
2 answers
386 views

One-to-one relationships occasionally evolve into one-to-many relationships. Once that happens, your team has a tricky job of refactoring the datastore, the backend to allow that change. For example, ...
Sergey Zolotarev's user avatar
3 votes
2 answers
163 views

Suppose I have (micro)services: The following is simplified a lot, you may assume they're significant enough to be a micro. Reseller Service - Our code is turned into whitelabel software. This is the ...
Martijn's user avatar
  • 757
5 votes
3 answers
455 views

I'm having a hard time of understanding at what point is multiple layers of validation protection necessary rather than a single point of failure and if the performance hit is a concern Lets say you ...
Observable Stone's user avatar
0 votes
1 answer
170 views

I have several tables in Oracle, in each of them are stored data about a different kind of tax declaration (house tax, hotel tax, and so on). All of them have some data in common, so I want to migrate ...
Accollativo's user avatar
1 vote
1 answer
259 views

I came across this system design question and have been wondering what is a good approach. Requirement : We have a typical blog or a mini social media kind of website where users create "Posts&...
brahmana's user avatar
  • 154
1 vote
1 answer
174 views

I am designing a system that serves multiple customers, providing data visualization for revenue and membership information. Currently I use a separate schema approach to isolate customer data. Each ...
Meitaiyang's user avatar
3 votes
3 answers
346 views

Engineering Community, I am currently writing my bachelor's thesis on microservices and DDD (this is not the actual topic, but it is part of it). The language I am writing in is Rust, but that is ...
Hannes's user avatar
  • 39
21 votes
5 answers
4k views

I'm developing an enterprise-grade warehouse management application for a chemistry laboratory. A critical feature involves mixing multiple stock solutions to create new solutions based on predefined ...
Biowav's user avatar
  • 321
2 votes
2 answers
515 views

Right now I have an edge device (resource constrained) which is processing, storing, and querying time series data using a Postgres DB. When a data collection event has ended, a simple script on the ...
Jack1221's user avatar
2 votes
3 answers
446 views

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
  • 131

15 30 50 per page
1
2 3 4 5
90