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.

1 vote
1 answer
135 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
160 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
157 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
358 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
155 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
435 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
166 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
243 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
0 votes
1 answer
169 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
313 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
490 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
420 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
1 vote
3 answers
296 views

I am creating a DB that indexes JSONs on top of a key value storage engine (LMDB or somewhat similar). When a new JSON needs to be indexed, I will create an entry for each field (AKA, JSON key), for ...
Samuel E.'s user avatar
  • 233
6 votes
9 answers
954 views

I've been studying different flavors of Service Oriented Architecture (SOA), Event-Driven Architecture (EDA), micro-services and related topics for the past few days. I see it often recommended that ...
Antti_M's user avatar
  • 179

15 30 50 per page
1
2 3 4 5
90