Database Design for Chat Application

Database Design for Chat Application

Database Star

2 года назад

59,789 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Falseloop
Falseloop - 11.10.2023 12:08

What about temporary like 24hr story system

Ответить
TheBulletKin
TheBulletKin - 28.09.2023 13:43

In the group_member table, I thought every record would need to have a primary key in order to be uniquely identifiable, but that table only has two foreign keys. Do those keys also serve the same purpose as a primary key then?

Ответить
Sid
Sid - 26.08.2023 22:16

Why contact and group_member is not a many to many relationship?
One group can have multiple contacts, and one contact can be present in multiple groups

Ответить
Asurow
Asurow - 20.07.2023 07:16

what if Message table have message_id, message_text, from_contact_id , to_contact_id, send_datetime and Group_member_Id fk . Group_member table have Group_member_Id , message_id fk and Contact_id fk.

Ответить
A Alzahrani
A Alzahrani - 18.05.2023 16:49

I have three users and each user has a table. How will I do that here ?

Ответить
Eugene Fedorov
Eugene Fedorov - 17.04.2023 04:53

But it will be a crazy query to get only 20 last msgs for specific conversations id, as it will need to filter a table from millions and millions other msgs. I dont know the right way right now, only know few with some pros and cons. Save all msgs as a json in field. But then it will be really hard to write new msgs each time. Other idea is to create for each conversations new table. But then it means we will have millions of tables in data base. But still i think this is the best aproach.

Ответить
Practical Bong
Practical Bong - 25.03.2023 21:16

if we want single user to send a message and or send to to a group how will i do that here ?

Ответить
Code Xperience
Code Xperience - 15.03.2023 19:03

nice erd for chat systems, will use yours and enhance it base to what i needed. thanks to your video

Ответить
Atif Bashir
Atif Bashir - 21.01.2023 15:05

The whole video was special. You are a TOP G. Keep it up bro

Ответить
Jatin Sutaria
Jatin Sutaria - 18.01.2023 15:46

Good stuff. However, how would you deal with figuring online users who need to be send messages to? Also, offline users, when they get online - how would this design help dispatch the missed messages to these users?

Ответить
AC Business
AC Business - 05.01.2023 20:58

Really impressed... love this stuff...

Ответить
hana tw
hana tw - 23.12.2022 00:48

شكراا

Ответить
Mohamed Ilies Boudouma
Mohamed Ilies Boudouma - 07.12.2022 12:18

In this case how to identify the sender?

Ответить
juhair ahamed
juhair ahamed - 04.10.2022 06:43

Good explanation

Ответить
Thong Nguyen
Thong Nguyen - 19.09.2022 12:20

How do i differentiate single chat and group chat? tks

Ответить
Michael Jackin
Michael Jackin - 15.08.2022 20:43

awesome stuff.. thanks for the clear explanation..
one question.. as the table grows, wont it be slower to query and fetch the chat messages if we store them in one table?

Ответить
Bảo Nguyễn
Bảo Nguyễn - 10.08.2022 05:55

With messages being stored persistently and the above relational data model. Which database is most suitable for chat app?

Ответить
john
john - 30.07.2022 12:00

Thanks for this video sir!!

Ответить
LOVE_SOFT_WARE_ENGINEERING
LOVE_SOFT_WARE_ENGINEERING - 30.07.2022 10:10

Great

Ответить
En Baha
En Baha - 27.07.2022 10:34

hey can you make bridge table with 2 EAV data model?

Ответить