r/databases • u/karma2489 • Feb 16 '16
Schema vs. table
Can you please explain the difference between the two? Example of each would be greatly helpful as well. Thanks!
r/databases • u/karma2489 • Feb 16 '16
Can you please explain the difference between the two? Example of each would be greatly helpful as well. Thanks!
r/databases • u/elliotchance • Jan 28 '16
r/databases • u/nobrandheroes • Jan 21 '16
I am in charge of a project to migrate data to MongoDB to Postgres, and I've never done this before.
The biggest decision is whether or not to move to a relational format. We are reporting on this data, and I'm not liking what I see for reporting off of a NoSQL Database.
Does anyone have any tips or guidelines? Suggestions on books or datasets I can practice the migration with?
r/databases • u/[deleted] • Dec 01 '15
So, I finally found a project for my Database Management class. I am basically going to make a database for all the hearthstone cards. I found all the cards in a JSON format here.
I have been trying to find a way to convert that JSON object into a MySQL database. So far I have had one failure when I downloaded the JSON file from the above-mentioned website and used www.sqlizer.io to change that into a .sql file. It created a very messed up table.
I found this link to do the task, but I have never used php and had no idea what to do. I am not sure if I am supposed to be executing the commands mentioned in the link after connecting to mysql or before.
r/databases • u/Simes82 • Oct 09 '15
I have this question and I haven't a clue what it wants or how to go about doing it. Can any one help?
9. Create a foreign key constraint so that a student can enrol on any module he/she likes (i.e., modules can be selected from any course – the student’s CourseNo is ignored), but the module must belong to the selected course. In other words, if the Networks course doesn’t have an “Intro to Databases” module, you cannot put a ModuleName of “Intro to Databases” with a CourseNo for “Networks” in the Enrolment table. (Hint: Relationships can be established between multiple columns in both tables.)
Here is a link of the tables. http://i60.tinypic.com/jgl09g.png
r/databases • u/sebtitan • Feb 03 '15
Hello, I'm not actually making a database, I'm writing an essay on how databases affect national business. I'm having a hard time finding sources that I can site that explain RDBMSs and how they work, but are also credible enough to site in my paper. Any sources would help out, places you've heard of, things you have used to help you learn, anything.
r/databases • u/zedcoreee • Oct 16 '12
I have the following attributes that I need to put through all 3NFs:
UNF: Week Commencing Site Day Time Slot* Employee* Role* Sick* Total Hours
Could anyone help me complete this?
r/databases • u/ss1183 • Aug 18 '24
My team uses mongodb as our primary database. As a startup we want to be data driven and hence are looking to build analytics on top of mongodb directly. Things we have tried: (1) MongoDB Charts: Doesn’t support lookups as of now. We need lookups for some crucial metrics. There is a way to create views and then use them in charts but we don’t want to give PMs access to DB directly to create views (2) MongoDB -> Redshift Pipeline: We used some third party tools to leverage MongoDB CDC feature to push data to AWS Redshift. It works for most part but if schema changes then it usually errors out. Underlying postgres works really well but eventually it will stop working as this is not what it was meant for. Also querying json with sql is way to complex for PMs (3) MongoDB Bi Connector: Dont want to buy PowerBI for this use case (4) MongoDB SQL Connector: Too slow for basic queries. Also not all operators are supported.
If anyone knows any solution for this, please let us know. Basic Requirements: (1) Should be plug n play with mongo atlas (2) Easy of use for PMs. If it can somehow use sql it will be great. (3) Charts and other visualisation support.
r/databases • u/nick_at_dolt • Dec 14 '23
r/databases • u/saipeerdb • Dec 13 '23
Five Tips on Postgres Logical Decoding - https://blog.peerdb.io/five-tips-on-postgres-logical-decoding📈 What causes slot growth and how to monitor it?
⚠️ Large transactions can lead to Slot growth and this can be avoided.
🎯 PUBLICATION for advance filtering of logical decoding changes
🚀 logical_decoding_work_mem to improve performance
🔥 Logical decoding via standbys in Postgres 16
r/databases • u/mikeybeemin • Nov 16 '23
I created a table and I’m trying to store urls in it but when ever I try and insert said urls I keep getting a error is possible I am using the wrong data type or is there a special way URLs are supposed to be added to tables
r/databases • u/softcrater • Nov 09 '23
r/databases • u/PracticalEvent1299 • Nov 05 '23
Anybody know or can explain how public databases work and gain access to them ? I’m no hacker I just would like to know..
r/databases • u/casba43 • Oct 17 '23
So I am building an app and I couldn't find any database host that let's you have full control to the database without paying.(Like pausing after x amount time, x amount of sent/retrieve requests). Is there a way to make an database server run on a minicomputer and to make it accessible to the internet/the app I am building?
r/databases • u/leeshyan • Oct 12 '23
PostgreSQL locks can cause issues in partitioned tables. Check out this blog on how TimescaleDB solves this using lock minimization strategies.
r/databases • u/noworkmorelife • Oct 12 '23
Image I want to create a restaurant menu database model. Each menu has sections and each section has items. I want to allow users to choose the order of the sections in the menu.
I thought about having a list inside a menu table and in this list store the primary IDs of the sections in the order the users chose them to be displayed. The same could be applied to sections and their items. But this seems problematic because there would be no automatic deletion when one entity os deleted.
I though about creating an integer column on the sections table that would represent the order in which to display the item. But I can see it getting hard to reason about it when deletions and updates happen. Potentially, changing the order of just one item might mean updating the order of many other items.
I found out a pattern called Closure Table but it looks like it''s aimed at use cases much more complex than this one I''m writing about.
So, is there any pattern that could elegantly satisfy my needs?
r/databases • u/leeshyan • Oct 11 '23
r/databases • u/leeshyan • Oct 06 '23
r/databases • u/PaoliBulldog • Oct 05 '23
Hello all!
I'm a noob who understands the reasons not to store files natively in a DB, but:
When I link a file to the DB, how do I prevent the filesystem from decoupling the file from the DB (move/delete)?
r/databases • u/leeshyan • Oct 05 '23
r/databases • u/leeshyan • Oct 05 '23