python 基于 sqlite 实现消息队列


背景

假如我要在内网、安全等级限制、无法安装第三方软件,如redis 等的环境下搭建一个开源的机器学习系统,给一些实时生成的数据、图片等进行异步的预测。

这就需要一个纯基于python 实现的消息队列。我们自然的想到使用sqlite 来进行搭建。


基于sqlite 的内存数据库

官方文档

  • https://docs.python.org/3/library/sqlite3.html

inmemorydb

  • https://www.sqlite.org/inmemorydb.html

性能指标

  • https://www.thedataincubator.com/blog/2022/11/17/sqlite-vs-pandas-performance-benchmarks/
    测试的仓库
  • https://github.com/thedataincubator/sql_vs_pandas

sqlite or memory-sqlite is faster for the following tasks:

select two columns from data (<.1 millisecond for any data size for sqlite. pandas scales with th

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

shiter

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值