当前位置:网站首页>What is the best way to store chat messages in a database? [Close] - best way to store chat messages in a database? [closed]
What is the best way to store chat messages in a database? [Close] - best way to store chat messages in a database? [closed]
2022-06-26 04:25:00 【fyin1314】
problem :
I'm building a chat app and I want a full history off all messages ever sent in the chat conversation. I am building a chat application , I want all messages sent in a chat conversation to have a complete history .At the moment I am storing each message as a single row in a table called 'messages'. at present , I store each message as a line in a file named “messages” In the table of .I am aware that this table could grow huge as even small messages like 'Hi' would have their own database record. I know this watch may become very big , Because even like 'Hi' Such small messages also have their own database records .
Can anyone recommend a more scalable mysql solution? Who can recommend a more scalable mysql Solution ?I don't require the individual messages to be searchable, editable or deletable. I don't require a single email to be searchable , Editable or deleted .Could the whole conversation be stored in one huge field? Can the entire session be stored in a huge domain ?
Would love to hear your ideas! I'd like to hear what you think !
Solution :
Reference resources : https://stackoom.com/en/question/TdQB边栏推荐
- Clean up photo SCR virus / iframekill injection removal /iframekill removal photo scr
- 解析JSON接口并批量插入到数据库中
- go语言泛型在IDE中语法报错
- Compiling and installing phpredis extension on MAC
- [QT] dialog box
- Navicat connects the pit of shardingsphere sub table and sub library plug-ins
- PHP has the problem of using strtotime to obtain time in months and months [original]
- 08_SpingBoot 集成Redis
- The select option in laravel admin contains a large amount of data
- mysql自带的性能测试工具mysqlslap执行压力测试
猜你喜欢

Tp6 controller does not exist: app\index\controller\index

CDN with OSS acceleration

2021/11/6-burpsuit packet capturing and web page source code modification

MySQL index details

线程同步之互斥量(互斥锁)

SixTool-多功能多合一代挂助手源码

win10 系统打开的软件太小,如何变大(亲测有效)

Navicat connects the pit of shardingsphere sub table and sub library plug-ins

Modify the number of Oracle connections

Computer network high frequency interview questions
随机推荐
CDN with OSS acceleration
Verrouillage de lecture et d'écriture pour la synchronisation des fils
asp. Net web page, ASP connects to the database, and uses asp:panel and asp:dropdownlist controls
Report on the "fourteenth five year plan" and future development direction of global and Chinese indoor vertical farms from 2022 to 2028
Gateway can not connect to tcp://127.0.0.1: Connection refused
CTF serialization and deserialization
Composer version rollback version switching
Install cenos in the virtual machine
What if the serial port fails to open when the SCM uses stc-isp to download software?
Development trend and prospect forecast report of China's financial industry 2022-2028 Edition
Nailing open platform - applet development practice (nailing applet client)
Install SVN in Pagoda and build SVN version Library
Report on demand situation and development trend of China's OTC industry from 2022 to 2028
Tp6 is easy to tread [original]
NPM installation tutorial
线程同步之互斥量(互斥锁)
Ubuntu installs PostgreSQL and uses omnidb to view
Minecraft 1.16.5 biochemical 8 module 1.9 version 1.18 version synchronization
The stc-isp burning program for 51 single chip microcomputer always shows that "the target single chip microcomputer is being detected..." the cold start board does not respond
MySQL enable logbin in Qunhui docker