Skip to main content

Questions tagged [database-development]

Filter by
Sorted by
Tagged with
2 votes
1 answer
436 views

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
1 vote
1 answer
334 views

How do you handle migrations to your database after a long period of time? I'm using fluent migrator, and after some months or years, the number of migrations could be (and has been in previous ...
thinkOfaNumber's user avatar
0 votes
1 answer
597 views

I am building a database, and have implemented a transaction log system to ensure that writes are atomic, idempotent & consistent. When a transaction is 'committed' it is appended to a log file ...
Albert's user avatar
  • 103
-2 votes
2 answers
190 views

I want a database table that can hold all of the group chat messages from all of the group chats. The max amount of users per group chat would be 20. The max amount of group chats per user would 25-...
TheAdmin's user avatar
1 vote
1 answer
122 views

I want to learn firestore and to this end I created small project which replicates instagram. Not all functionalities of course, just the very basics - photo sharing, comments and the possibility to ...
newbie coder's user avatar
-1 votes
1 answer
143 views

[I am preparing to solicit proposals for database/project management software design. I know that the quality of the final product will depend on how clearly and completely I can organize and explain ...
Casey's user avatar
  • 27
0 votes
0 answers
72 views

I plan to have a cloud web application(CWA) and several local web application(LWA), let's assume 3 LWAs and 1 CWA. CWA === LWA. This web application would consist of a database server, file storage ...
Olamide226's user avatar
6 votes
2 answers
366 views

I've always been curious on how services such as google/youtube have multiple datacenters across the globe to serve requests faster to users while keeping their whole dataset structure intact. There ...
Epic Speedy's user avatar
1 vote
2 answers
198 views

...to prevent messing up with data updates, such as prices, titles, of the products that are placed in an order. Namely, a customer buys 3 items: for $5, $10 and $33 and pays for them. All is well. ...
Dajaku's user avatar
  • 31
-1 votes
4 answers
489 views

Say that I am developing a web application that has the following structure: An SPA web frontend (angular in my case) Postgresql database with: A bunch of initial data in CSV's and JSON's that need to ...
user3243135's user avatar
2 votes
4 answers
1k views

I have a schema containing contracts, sub-contracts, services offered by each of those, and sub-services. I also have an application that allows me to extend the duration of the contract and to modify ...
Andrei Stanciu's user avatar
0 votes
1 answer
2k views

I engineered an ERD diagram using Barker's notation. The problem was to make a database for system of water pipes where one node is connected to another using a section (pipe), each node can have ...
Adrian Setniewski's user avatar
53 votes
8 answers
15k views

I am diving in the domain driven design (DDD) and while I go more deeply in it there are some things that I don't get. As I understand it, a main point is to split the Domain Logic (Business Logic) ...
Leonardo Mangano's user avatar
4 votes
1 answer
600 views

The pain that I've often felt when creating database migration files, is best described in this Speakerdeck: Sane Database Change Management with Sqitch. Paste entire function to new "up" script ...
Christiaan Westerbeek's user avatar
0 votes
2 answers
92 views

I am seeing bad practices occurring in our version control where my colleagues are creating their own versioning system with stored procedures so that they can compare results before/after changes and ...
mhep's user avatar
  • 245
1 vote
1 answer
761 views

I am making a b2b-webshop system that will have multiple customers. Each customer will have a separate active pricelist which contains the products that they can buy and the prices that applies for ...
thrustmaster's user avatar
-1 votes
2 answers
118 views

I'm implementing my own simple database with disk storage, and I'm not sure how to go about modifying and deleting entries. The problem is that as you delete a record from arbitrary position within ...
Violet Giraffe's user avatar
1 vote
1 answer
89 views

Where I work, there is an Oracle data warehouse that is managed by another group that contains some pretty critical information for the company to run smoothly. The issue is that they (apparently, ...
JB06's user avatar
  • 111
3 votes
2 answers
135 views

From what I understand, no-SQL databases differ from SQL databases because they allow the developpers to designe the tables to fit the usage, rather than fitting the model. Which means most of the ...
Vulpo's user avatar
  • 141
0 votes
2 answers
606 views

Consider this simple example: Tables (in a restaurant) can be booked for a period. Business constraint: No two table bookings for the same table may overlap in time. How might one prevent business ...
Jesper's user avatar
  • 123
0 votes
3 answers
350 views

An application has types Game (and other business units) and Message. (Message is not a simple class with text, but a composition of a variable number of blocks like texts, images, and videos). ...
automatix's user avatar
1 vote
1 answer
93 views

I'm creating a database schema for a internet store and I wonder how to better create the tables "images" and "products". A simpler way will be to have it as one_to_many, that is: images(....., ...
Jorik's user avatar
  • 19
-6 votes
1 answer
776 views

Say, I have a table Categories. On a page I have a header and for each category the colour of a header varies. A colour is of the presentation level and I've heard that what's related to the UI/...
Kakki's user avatar
  • 83
-1 votes
2 answers
86 views

Say, I want to create a db schema for a blog. So far I've used 2 separate fields for "description" and "content" of Article. But I've seen a lot that usually only a single is used for both. The "...
Kakki's user avatar
  • 83
-1 votes
1 answer
656 views

On my website there's a new subscription form. And users can also register and subscribe to news after. When an anonymous user subscribes to the news, how should I better handle that? Should I create ...
Kakki's user avatar
  • 83
2 votes
2 answers
130 views

I've seen the url like this domain.com/some-article-title-which-can-be-very-long many times. There's no ID embedded in it. Therefore, in a db it must be defined as "unique article_url varchar(NNN)" ...
Rakori's user avatar
  • 797
37 votes
8 answers
41k views

What's a correct format of a geographical address/location which is a good fit for any address on the Earth? At the moment I have: country city street number text data (for simplicity) zip lat/lng But ...
Xwaro's user avatar
  • 411
0 votes
1 answer
2k views

I have some data (list of parameters) that should be shared across the backend and the frontend. The changes are really infrequent, and changes usually mean a redeploy. Currently, it is stored in the ...
fodma1's user avatar
  • 139
0 votes
1 answer
61 views

I have several postgres DB, on distant sites, two in China, 1 in India , one in Korea, one in Germany, one in France and one in Mexico. All dbs, regardless of their site, have one table that is part ...
Andy K's user avatar
  • 285
1 vote
2 answers
2k views

Let's say I have my web shop and database have multiple tables like Products, Product prices and similar. I'm selling my software solution to my affiliate partner. He gets its database, it window ...
Vlado Pandžić's user avatar
1 vote
2 answers
147 views

Our company code base still has some code that will create the database, tables, stored procedures and the like.Coding the SQL stored procedures line by line in Java, in string format is a real pain. ...
Harriet's user avatar
  • 139
3 votes
4 answers
2k views

Here is the framework We have an SQL database in which our database model lives in. On the other side, there is a bunch of code using and filling that database. Here is what we want We want to put ...
Tobias Windisch's user avatar
0 votes
3 answers
119 views

I am trying to implement the use of two database in my application, sqlite and mysql. Currently i added references to both database connection library, and duplicate all first checking which database ...
Smith's user avatar
  • 643
2 votes
1 answer
813 views

I was wondering if there are general guides or standards which can be followed when trying to show if your own database implementation is ACID or BASE compliant? For example are there any specific ...
Filipe Teixeira's user avatar
0 votes
2 answers
87 views

So my problem is, I have users entering their data(names, address) in a mixed form- some with first letter in caps and some without, some inserting more than necessary spaces and so forth. Also, ...
Kaushik Gopalan's user avatar
1 vote
0 answers
829 views

I am maintaining an app that uses a lot of sql server 2008r2 stored procs, views etc. The problem that I have is that certain stored procedures/views have code that is specific to the environment: ...
boggy's user avatar
  • 141
3 votes
1 answer
1k views

In the book Database Fundamentals, Silberschatz. It is explained that aggregate functions can be calculated on the march. This make sense. What it means is that for calculating the maximun, average ...
jgomo3's user avatar
  • 336
3 votes
1 answer
795 views

I'm working for a small webdevelopment company and we want to set up development environments. We'll be using the Laravel framework in combination with Homestead. Now, Homestead has its own database ...
Audite Marlow's user avatar
4 votes
1 answer
458 views

I know the basics of why a database uses a transaction log - fulfilling ACID properties, ability to rollback/restore, etc. The basic algorithm that I see for a transaction is as follows: transaction ...
bobroxsox's user avatar
  • 143
5 votes
3 answers
744 views

I'm currently working on a project which only uses its database for data storage. This means there are no triggers or stored procedure in it, just tables and data to put into it. In this scenario I'm ...
Kristof's user avatar
  • 2,241
3 votes
1 answer
1k views

I'm building a web application in Spring. I'm using an in-memory (embedded) database for my integration test - HSQL My production database is MySQL. When i setup my integration tests a while back i ...
SoftwareDeveloper's user avatar
1 vote
1 answer
168 views

I'm creating a webapp that has a variety of models: Product, Category, ProductOption, etc. All of these models have a set of shared attributes: name, description, image, etc. There are two options I ...
Shane's user avatar
  • 175
3 votes
2 answers
887 views

Is there any point to having a dedicated development database server(s) that all developers can use, i.e. they don't have a local copy of the db in their machines. Quite clearly, this will slow down ...
turntwo's user avatar
  • 131
3 votes
0 answers
909 views

Background Information I have a web app that provides the user with the usual CRUD functionality for "widgets" let's say. But I also have give them the option of creating widgets in bulk via ...
dot's user avatar
  • 581
4 votes
2 answers
432 views

I should preface this by saying that I'm mostly a front end web developer, trained as a musician, but over the past few years I've been getting more and more into computer science. So one idea I have ...
tjb1982's user avatar
  • 249
1 vote
3 answers
903 views

I am planning to make a simple rest service application, and I am currently deciding the architecture. I have decided that I want to write the middle layer in multiple languages, so that it is easy to ...
Billy Moon's user avatar
3 votes
3 answers
3k views

I am implementing an ecommerce database. This is slightly different than most as the 'products' that are for sale are for services provided. For example a user (vendor) of the system may define a ...
GWed's user avatar
  • 3,263
5 votes
2 answers
1k views

I am facing a conceptual development methodology problem that I was hoping you could help me with. Firstly, a little bit of background. Background The project I am developing is a niche application ...
Big Luke's user avatar
  • 153
1 vote
1 answer
2k views

I have a reservation table (a user fills out a form to request a reservation). It has two parts that need to be confirmed. isReservationAccepted (decline,accept,waiting) and hasReservationBeenSent (...
datatest's user avatar
  • 113
0 votes
1 answer
1k views

I had the following DB schema: Customer Car Rental ------- ---- ------ Name Name Car_ID ID ID Customer_ID Date This is said to be non normalized ...
John V's user avatar
  • 4,946