Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
2 answers
56 views

How do I have a database field that provides a calculation in real time, i.e when the user is entering data into the form? I tried to run an afterUpdate event from the field in the form labeled ...
MrWeazel's user avatar
-1 votes
1 answer
66 views

If I save the password to the database as a hash in the configuration file of the application or in the code for security reasons, how does the application connect to the database if it does not ...
Leo's user avatar
  • 1
0 votes
1 answer
57 views

I have two tables: Table apartments: house_no house_street 1 Pomona 2 Pomona 1 Dubai 2 Dubai Table streets: street_name total_buildings Dubai NULL Pomona NULL I would love the column streets....
Tsaku Graham's user avatar
1 vote
2 answers
429 views

I am creating an application which will enable users to create posts and also like posts. I am using MySQL to store all the data. I have the tables users and posts. I want to prevent the situation ...
Allispossible's user avatar
0 votes
1 answer
177 views

I am setting up new MySQL database schema for a small company. We sell products which are collections of raw units of inventory. In the database, I would like to link products with their raw inventory ...
Kelsey Butler's user avatar
0 votes
1 answer
89 views

I am experiencing an issue with my Citus multi-tenant database setup, where I am unable to retrieve expected tenant statistics. I am currently running Citus 12.1-1 on an Ubuntu server with a master ...
Qutaiba Ashqar's user avatar
0 votes
1 answer
62 views

What's the correct way to do (what I think is) a many to many association in a relational database? Consider something such as (I'm using sqllite to play around): # Store details about each teacher... ...
Matt Conway's user avatar
-1 votes
1 answer
121 views

We organize runs, and we want to save run results and the number of kilometers that runners did run in their career. We have one table with every runners data (name, age, gender, etc. including an Id)....
kokoperation's user avatar
0 votes
0 answers
86 views

Relatively new to NoSQL databases and am curious on what the best practice is for the following. I've also been reading https://firebase.google.com/docs/database/android/structure-data#...
Jesse Yentsch's user avatar
0 votes
1 answer
111 views

After some initial research, I'm trying to determine a scalable solution for implementing Google-Docs-like version history for Postgres tables. The difficulty is that these tables have one-to-many and ...
deepsun's user avatar
  • 430
0 votes
1 answer
62 views

I have three tables of concern to my problem: students, staff, and issued_books. The issued_books table has book_id column (reference to the books table) and user_id column (reference to either ...
themaestrocode's user avatar
0 votes
1 answer
172 views

The process I update contents by several crons. Some crons update metadatas from different sources, some update prices from different sources, some push the contents to things like marketplaces. Until ...
Gregory Kapustin's user avatar
0 votes
1 answer
43 views

Consider following Table Structure ( 77k rows and 237MB dump size, column cart_data_json as of right now can be as big as 0.01k to 50k characters ) CREATE TABLE `commerce_sales_test` ( `...
taufik chowi's user avatar
0 votes
2 answers
355 views

I have 2 tables/schemas with relationship one-to-many, let's assume there is a Person that can have multiple Animal. Then each animal has person foreign key to implement this relationship. I use ...
Bartłomiej Szałach's user avatar
-1 votes
2 answers
44 views

I am trying to design the user database that has an administrator, manager, user. I thought of two ways. The first one is the user has a role column and will make relation between user-manager with an ...
menww's user avatar
  • 67
0 votes
1 answer
276 views

I'm building a software that is indexing and analyzing a large amount of blockchain data and I'm considering using TimescaleDB for better analytics performance as I'm running into performance issues ...
Antoine's user avatar
  • 2,807
-1 votes
2 answers
75 views

I am working on a system using JPA where Entity 'Events' are associated with Entity 'Groups' and each Group has fields (Group1, Group2...) indicating their attendance status for an event. How to ...
user avatar
-2 votes
1 answer
127 views

I'm trying to design a privacy-first document management system, where the user's content should not even be readable by our team. The user should, however, be able to share the documents with a ...
Sameera's user avatar
  • 1,123
-1 votes
1 answer
220 views

I'm working on a social media project and implementing a 'follow' functionality using Prisma. While working on this, I encountered the code given below, where the relations in the User model seem ...
Aashish Aggarwal's user avatar
0 votes
1 answer
111 views

Firebase documentation article Structure Your Database section Best practices for data structure says "Avoid nesting data". What are the benefits for performance and maintenance to have ...
EzioMercer's user avatar
  • 2,149
-2 votes
1 answer
46 views

I aim to create a low-latency computing engine tailored for online transaction data. I will extract information such as email, phone number, and customer device from the transaction payload, then ...
lowFPS's user avatar
  • 1
0 votes
1 answer
294 views

My application using Prisma has users who can create many projects. These projects are akin to text documents, but with some additional attributes that assist with organization. These projects will ...
deepsun's user avatar
  • 430
-1 votes
1 answer
127 views

I have a 10 million+ PostgreSQL (v16) table that stores address details for a person. I have to find the addresses that are similar to the input address and exceed a threshold. We have tried module ...
Akhilesh mahajan's user avatar
1 vote
1 answer
104 views

Is there a convention/is it possible to return an array/list of nested objects within a column, e.g. from joined many-to-many tables? For example, say I have three normalised tables: "movies"...
Phil's user avatar
  • 21
1 vote
2 answers
1k views

I want to give a group of users selective access only to particular columns of an Application due a privacy concern. So, when user types '''SELECT *''' on restricted table, he could only see allowed ...
Dec0de's user avatar
  • 401
-1 votes
2 answers
550 views

I have an app with invoices, I set the invoice id to auto-increment. my client wants the ID to include the year and restart at 1 when a year passes. for instance ids could look like this. 2023-344 ...
Yusuf Bouzekri's user avatar
3 votes
1 answer
2k views

I have a table player with the following DDL. I only changed the column names and the order: create table if not exists player ( id varchar primary key, col1 boolean not null default false, ...
ssamtkwon's user avatar
  • 185
0 votes
0 answers
25 views

I'm working on an application that needs to keep track of physical places in the world that are hierarchically related - berth, terminal, port, country. They all share some basic characteristics, like ...
Alex Crooks's user avatar
-1 votes
1 answer
68 views

Roles are handler, sitter, and client in the Pet Sitting Tracking Service. Should 3 separate tables be made for each role or should one role table linked to user will be sufficient? CREATE DATABASE ...
Br3aking_Code's user avatar
0 votes
1 answer
74 views

I've seen different database designs in different projects. Some of them claim that from son to grandparent one should go through the parent (intuitively correct); in others there is a lot of ...
Polikarpos Goldshtein's user avatar
0 votes
1 answer
268 views

The following is my Prisma Schema for 3 models --> User, Cart and Item. model User { id String @id @default(auto()) @map("_id") @db.ObjectId name String email ...
Harsingh Sekhon's user avatar
1 vote
1 answer
228 views

A relative noob building a Postgres SQL database to track data by user, where every row is guaranteed to have a uuid as well as user_id assigned, and with most queries being by user_id and optional ...
Francois Bertrand's user avatar
2 votes
0 answers
473 views

Our team is using Python's Alembic in conjunction with SQLAlchemy as our DB migration tool. Say there are two developers and two feature branches are created from a parent branch called feature1 and ...
user17443811's user avatar
-1 votes
1 answer
355 views

From my understanding of composite sort keys on DynamoDB it provides greater flexibility on querying and can be lower cost than creating global secondary indexes. Suppose I'm creating a blog with time-...
DevOverflow's user avatar
-1 votes
3 answers
177 views

I have a SQL database for maintaining D&D games which has tables for things like Characters, Items, and Locations. I want to start modelling the relationships between all these different entity ...
Dave's user avatar
  • 67
-1 votes
1 answer
121 views

I'm working on a database schema involving four tables: A, B, C, and D. The relationships among these tables are as follows: Table A can have one or many records from Table B. Table C can have one or ...
CodingSoot's user avatar
0 votes
1 answer
39 views

I’m trying to work out the structure for a bibliography database with three basic entities: text (essays, articles, etc.), publication (the books, journals, etc. that contain those texts), and maker (...
practik's user avatar
  • 51
0 votes
2 answers
714 views

I have a Superclass A that has a 1:* (one-to-many) relationship with another entity (X) and the participation of A is mandatory. A has two subclasses with their own distinct attributes, B and C. The ...
Vladimir's user avatar
0 votes
0 answers
54 views

I'm creating a management system for the company in Laravel. I'm doing the part that concerns the management of employee schedules and our various sales points. I have a user table, a front offices ...
Match's user avatar
  • 11
0 votes
1 answer
94 views

I will extend the 4NF example from Wikipedia with a Cost attribute. Define the relation from Wikipedia as R(Restaurant, Pizza, Area). By the original definition of R, there are multivalued ...
yournameplease's user avatar
-1 votes
2 answers
1k views

As I focus on designing DynamoDB with a query-centric approach, I find that the sort key is becoming quite lengthy. For instance, I plan to use PK as like USER#{UUID} and structure SK as like ...
narumi's user avatar
  • 77
-3 votes
1 answer
49 views

I'm currently working on a web project "Online Election" where users can create Election as they need. I can not think of any idea how the Database should be, For the database, every time ...
xedox_za's user avatar
-1 votes
2 answers
67 views

I know that primary key values cannot be repeated. However, I want to make it so that games can be played on more than one platform. For example "Dark Souls" on PC and PS4. How do I modify ...
medina_01's user avatar
1 vote
1 answer
66 views

Suppose I have a table artists and a table tracks, with a many-to-many relationship between the two. When I delete an artist, I also want to delete all the tracks that have no corresponding artists ...
robertspierre's user avatar
-1 votes
1 answer
63 views

I have a MS Access w/ linked SQL tables. There is a table for recording the different projects and the people working on them. The table is of this form ProjectID PersonID PersonTitle 12 123 VP 12 124 ...
ponnob's user avatar
  • 3
1 vote
0 answers
60 views

I am currently working on a project involving MongoDB with three collections: datasources, variables, and a time series collection values. The values collection stores time-stamped data for various ...
anonymous_33008899's user avatar
1 vote
0 answers
28 views

The app we are dealing with: Imagine a NodeJS e-commerce app where you can purchase items, and user orders are stored in MongoDB. Imagine the app has an admin dashboard where all orders are listed in ...
Oscar's user avatar
  • 620
0 votes
0 answers
54 views

I am in a scenario where I have 2 applications (Rest API), and each of them has its own database. Application A with database A, and application B with database B. Database A has a table X that I need ...
Dados Chatos's user avatar
-1 votes
1 answer
61 views

Need query that returns (x, y1, y2) for JFreeChart JDBC via HSQLDB. This is what I have so far: SELECT "X", "Y" AS "**Y1**" FROM TABLE WHERE A=1,B=11,in1='chocolate',(ABS(...
Darrell's user avatar
-1 votes
1 answer
306 views

I wanted to understand sharding in case of multiple tables which might be used for QnA websites like Quora/SO. Let's assume that users can ask questions, give answers and comment on both questions and ...
MikeRob's user avatar

1
3 4
5
6 7
485