2. Query first efficient database design for a private chat application | Real time private chat app

preview_player
Показать описание

Hello everyone, in this series you will be able to build a real time chat application like facebook with lots of cool features.

Рекомендации по теме
Комментарии
Автор

This tutorial was extremely useful for me. Thank you!!

SaiTeja-iryv
Автор

Great video! but how can i exactly query the conversation between the two user?

jesrealibabao
Автор

Hello, so sorry, bad design. Part with deleted message, it is not so good. You mean, if one user delete, it should be also for deleting for second one? I don't think it is correct

yertayyeras
Автор

where is the date/time and ordering logic ? which is major part of chatting.

maheshmahadar
Автор

great!
but i am still confused about the hash one, can you explain how can i query the conversation between me and another user using this hash? query example please

shadyeldawy
Автор

It would be great if you link the next video at the end. So that users shouldn't go look for it. Thanks.

selahadinjemal
Автор

What if instead of an inboxHash in the chats table, I made the Primary Key of the inbox table a composite one of (inbox_id and user_id) then I can use the inbox_id as the Foreign Key in the chats table as now inbox_id can be unique to each conversation

garetht.
Автор

Hello, good video - thank you. I have a question, with the messages how would you make sure they display on screen in the correct order? Would you need a 'created at' row & then would you order them by the date/time? Or does it just somehow work without a date/time?

JB-uxri
Автор

Problem with this is if you want to get the list of conversations in order of last message received with a preview of that message. Another table called conversations would fix that issue. Also you can’t do group chats with your database either.

yourgflikesit
Автор

can you provide the source code for this messanger app??

negi