DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Data Engineering
  3. Databases
  4. Relationships and Relational Databases

Relationships and Relational Databases

Max De Marzi user avatar by
Max De Marzi
·
May. 10, 12 · Interview
Like (0)
Save
Tweet
Share
6.47K Views

Join the DZone community and get the full member experience.

Join For Free

when working with relational databases, the join tables are sometimes treated as second class citizens. if they are lucky, they’ll get some additional fields, but are often just placeholder tables connecting your main object tables together. it leads you to think about objects first, and relationships second. with graphs, you will want to switch up your thinking. you want to start thinking about how things are connected. think about the different ways things are connected. two people can be friends, co-workers, and neighbors all at the same time.

if you’ve ever been crazy enough to go back to school after your bachelor’s degree, you know all about research papers, journals, and citations. so what kind of relationships can we find here? papers are rarely authored alone. having multiple authors means you can create a graph of co-authors. which students and scientists work together on papers, and which should work together. scientific research builds upon the work of others, and previous work can be used to build a graph of citations. keywords in the abstracts or extracted from the papers can be used to build a graph of similar content.

what about a social network like twitter? how about a follower graph, a reply graph, a mention graph, a co-listed graph, a hashtag graph, a co-location graph, a shared-url graph? what about blogs? how about a link graph, a blogroll graph, a tag graph?

you will be surprised by how connected your data is once you start exploring it. don’t be afraid of your model. just start with whatever you have and start adding nodes and relationships as they become apparent to you. your model will probably evolve, so don’t waste your time second guessing yourself.

when folks ask me about modeling, i tell them to start with the questions they want to answer. it doesn’t end there however. once you’ve answered those questions, you’ll discover more. you’ll say, if i had this extra piece of data, i could ask and answer a ton new questions i didn’t think about before.

i’ll spend some time in the next few posts digging in a little deeper.

Relational database Graph (Unix)

Published at DZone with permission of Max De Marzi, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How Elasticsearch Works
  • Strategies for Kubernetes Cluster Administrators: Understanding Pod Scheduling
  • Create Spider Chart With ReactJS
  • Top 5 Data Streaming Trends for 2023

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: