169 похожих чатов

Why not use a separate table for customization? Or even

just columns

16 ответов

36 просмотров

What if there are a lot of things that can be customized. How do you store it for 1 million users?

⟨ Simon | Schürrle ⟩
you have a column per setting?

So if the app have 100 customizable thing, you will create 100 column in the table?

⟨ Simon | Schürrle ⟩
sure

And later when the app have 200 customization, you add another 100 column? And for 1 million users, you create it for 1 mil rows?

harꭑony5 🐦‍🔥-↺ Автор вопроса
Sharuzzaman Ahmat Raslan
So if the app have 100 customizable thing, you wil...

You'd have to create them in the multiple dbs per user scheme as well

Thomas
Yes?

Ok. If I'm designing the app, I would just give each user their own DB for their own setting. Because if I had 1 mil user, removing 1 mil connection to DB just to get timezone should be much better

Sharuzzaman Ahmat Raslan
Ok. If I'm designing the app, I would just give ea...

Your app won't support 1 million users with that design

Sharuzzaman Ahmat Raslan
Ok. If I'm designing the app, I would just give ea...

right and opening 1 million files is so much better :D

Sharuzzaman Ahmat Raslan
Ok. If I'm designing the app, I would just give ea...

You completely ignore that fact that finding the correct DB you need to open by a userid is not different than finding the relevant row in a single DB, and it'll have worse performance

jeff lemon
ever heard about sqlite?

This discussion is about giving each user their own sqlite

Похожие вопросы

Обсуждают сегодня

Скажите, можно ли как-то "переместить" динамический массив из одной переменной в другую? Скажем, переместить из TList<> в TArray<>. Именно переместить, а не скопировать. Если ...
Eugene Krasnikov (ᴊɪɴ x)
37
Вот еще криповенькая штука. uMain.pas(517,3) Warning: Case statement does not handle all possible cases И ЧО? 😂
Александр (Rouse_) Багель
20
комрады, че-та лыжы не едут var tmpFont: TFont; begin tmpFont:= TFont.Create; try case rgFontColor.ItemIndex of 0: tmpFont.Color:= clWindowText; 1: tmpFo...
Ed Doc
34
Интересно, нет ли какого-то способа получить из dll не адрес самой метки, а адрес со смещением?
The Bird of Hermes
54
.model small .stack 100h .data a db 'Hello, World!', '$' ; исходная строка b db 20 dup(?) ; строка b с запасом на максимальную длину .code main: ...
Алексей -man
3
Или имеется ввиду именно что медленнее работа компилятора?
Куся 🌿⃤ __UKS
9
М-да. Почему бы просто со stringlist не работать?
Michael Longneck
23
вопрос, кого посмотреть в ютубе или где почитать про указатели чтобы раз и навсегда запомнить зачем они нужны и как правильно ими пользоваться? поделитесь хорошими ресурсами, ...
-
14
let sum = [1, 2, 3].map { String($0) }.flatMap { Int($0) }.reduce(0, +) let sum = [1, 2, 3].map { (num: Int) -> String in String(num) }.flatMap { (str: String) -> Int? in Int...
Yakov
7
Is there a digital way to cut the electricity from a usb in linux? It sounds weird, but it's exactly what I need to do. I tried to simulate the unplug/replug but is not the ...
Eduard Rivas
15
Карта сайта