Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
5 answers
167 views

MySQL solution for many to many associative table that scale over billion entries

Scenario Imagine we have a table user and an item user. These 2 tables have an associative table called user_item to define a many to manyrelationship. We start 100 item records We have 500 Millions ...
Federico Baù's user avatar
0 votes
0 answers
34 views

Strategies to get more performance in a specific scenario

Introduction Hi Guys, my name's Joao, i'm currently working as backend and that's my first post. I'll appreciate any help! My team are working on a new feature. During the process of development we ...
João Castro's user avatar
0 votes
1 answer
742 views

How to denormalize many-to-many relation without nested select?

I have the following schema: house has many students, student has one house gender has many students, student has one gender game has many students. student has many games For instance, consider ...
RinkyPinku's user avatar
2 votes
1 answer
3k views

Efficiently return two aggregated arrays from a m:n table

I have a table for a many-to-many relationship over a users table to represent a follow relationship between users: CREATE TABLE users ( id text PRIMARY KEY, username text NOT NULL ); CREATE ...
Russell Ormes's user avatar