Похожие чаты

What would be a good way to store custom key-value

settings for products? I want users to be able to create whatever characteristics they want if they so desire, and then filter through them, such as if someone were to sell a computer, they'd add

{ processor: x, graphicCard: y, gpu: false }

I was planning on storing users, settings, subscriptions and all of that with SQL, but I can't be expected to have 200 column entries, one for each thinkable setting a product may have, and given that it's open market, anyone could just want to introduce a new category of product.

2 ответов

18 просмотров

You can store in just one column, called users settings, or something like that, with a nvarchar(max) size for sample. But this can brougth some problems, like somebody could create graphic card, and other user could create grapic card, or something... and it is not a good idea search in char fields,in this case, i suggest you create a new table, where you create all the categories, or correct them... or just save in this table all the options

Besto- Автор вопроса
André Araujo
You can store in just one column, called users set...

the problem is i don't know what they're gonna want to buy, sell, or even post

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

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

А как старый хаскел с новым стыковать ? потому как тут работает https://play.haskell.org/saved/C3xpMzcd, а вот тут https://stepik.org/lesson/7602/step/9?unit=1473 нет ошибка C...
Fedor
131
Guys what is ur real (no jokes) expectation of link price during this cycle?
Hobbyist
22
Hey, it seems like a solid project for the gaming industry. What are your initial thoughts?
Josh
26
Ребят, что лучше для реверса: гидра или ида?
En Vind Av Sorg
26
if (user?.choseType === 'oneDay') { await ctx.reply( 'Добро пожаловать в команду «Магнита»! Правда, на один день ☺️ ', ); await ctx.s...
Kokni
1
Вопрос я правильно понимаю что в коде newtype ArrowMap k v = ArrowMap { getArrowMap :: k -> Maybe v } getArrowMap есть функция типа k -> Maybe v, если да, то не понимаю задач...
Fedor
64
Делаю велосипед логгер. К сообщению хочу прикрутить некоторую информацию, типа, кем отправлено, какой уровень, и всякое такое. И тут подумалось мне, почему бы не хранить весь...
Serjone
24
Всем привет! Использую gitlab-ci. Настроил gitlab-agent для деплоя в куб. При деплое проекта в логах такая ошибка: Executing deploy plan failed to watch "ns:my-project/Ingress...
Konstantin Moiseev
4
Всем добрый вечер, подскажите пожалуйста, я вот вот начинаю пользоваться linux, перешёл с винды и хотелось бы узнать есть ли аналоги onedrive чтобы хранить документы в облаке ...
Malik
14
Как Вы считаете нормально ли в двадцатых годах 21 века в ВУЗах Российской Федерации обучать студентов работе с TASM? Не слишком ли это "архаично"? (Если оффтоп или флейм для э...
Spiker01
52
Карта сайта