当前位置:网站首页>Module 8 operation
Module 8 operation
2022-06-11 19:35:00 【InfoQ】
- Different task queues create different tables , such as xx_q, yy_q etc. . This reduces the size of each message table , Improve performance ; Reduce interference between different messages , Improve SQL Execution speed .
- Table structure
CREATE TABLE `xx_q` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `status` tinyint(4) DEFAULT 0, `ps` int(11) DEFAULT 0, `ut` timestamp, `msg` json, PRIMARY KEY (`id`), KEY `ut` (`ps`,`status`)) - working principle :
- Lock this work message : update xx_q set ps=connection_id() , status=1 where ps = 0 and status=0 limit 1;
- Get message body : select id, msg from xx_q where ps = connection_id() and status=1;
- Conduct News consumption
- Delete the consumed message delete from xx_q where ps = connection_id() and status=1;
- Clean up the messages occupied by the zombie process : Time clearing conversation id No longer exists ( Abnormal exit ) but status=1 And Zombie time exceeded 30 Minutes of news
边栏推荐
- MySQL federated index and BTREE
- Common - name of conference room
- POJ 1458 longest common subsequence (dynamic planning exercise)
- 基于飞桨搭建的多模态学习工具包PaddleMM
- First acquaintance with enterprise platform
- Big work and requirements of economics in autumn 21 of Dagong [standard answer]
- Building web applications
- Introduction to go language (V) -- branch statement
- 何恺明团队的“视频版本MAE”,高效视频预训练!Mask Ratio高达90%时效果也很好!...
- YOLOv3 Pytorch代码及原理分析(二):网络结构和 Loss 计算
猜你喜欢

Picture bed: picgo+ Tencent cloud +typera

程序员10年巨变,一切都变了又好像没变...

Flask CKEditor 富文本编译器实现文章的图片上传以及回显,解决路径出错的问题
![[signal denoising] signal denoising based on FFT and fir with matlab code](/img/4c/782afe2652a674d64fccd8d28304ed.png)
[signal denoising] signal denoising based on FFT and fir with matlab code

Understand how to get started with machine learning to quantify transactions?

激活函数公式、导数、图像笔记

APB2standard_handshake_bridge 设计

Pyqt5 tips - button vertical display method, QT designer sets button vertical display.

CMU 15-445 数据库课程第五课文字版 - 缓冲池
![[image denoising] image denoising based on Markov random field with matlab code](/img/ef/d28b89a47723b43705fca07261c958.png)
[image denoising] image denoising based on Markov random field with matlab code
随机推荐
Neural network and deep learning-2-simple example of machine learning pytorch
[laravel series 7.5] event system
Hanging memory recursive dynamic programming (with example explanation POJ 1163)
vs2010链接sql2008数据库时无法打开
Key contents that wwdc22 developers need to pay attention to
2022各大厂最新总结的软件测试宝典,看完不怕拿不到offer
Usage of duck beak wire stripper
On the selection and design of management subsystem of collection system
Anaconda安装、Jupyter Notebook默认启动路径修改及Nbextensions插件安装
Programmers have changed dramatically in 10 years. Everything has changed, but it seems that nothing has changed
Offline assignment template and requirements of the course design of real estate development and operation in the 21st autumn of Dagong [standard answer]
Poj1028 web navigation
Yolov3 pytoch code and principle analysis (I): runthrough code
[C language questions -- 10 simple questions for leetcode]
CMU 15-445 database course lesson 5 text version - buffer pool
Qubicle notes: Hello voxel
Image transformation torchvision Transforms notes
Review of software testing technology
7-3 combinatorial problems (*)
30讲 线性代数第二讲 矩阵