Mysql:获取数据库/表的大小
摘要:查询所有数据库的大小 use information_schema select concat(round(sum(DATA_LENGTH/1024/1024),2),'MB') as data from TABLES 2. 查看指定数据库的大小 / test数据库为例 select concat(
阅读全文
posted @
2021-07-30 16:45
x-dai
阅读(258)
推荐(0)
Django的F和Q函数
摘要:F函数,用于操作对象的某一列的值 from django.db.models import F, Q from .models import Fruit fruit = Fruit.objects.get(id=1) fruit.count += 1 等同于 fruit.count= F("coun
阅读全文
posted @
2021-07-17 16:55
x-dai
阅读(108)
推荐(0)
django-redis中文文档
摘要: Django-Redis latest django-redis 中文文档 Docs » django-redis 中文文档 Edit on GitHub django-redis 中文文档 Andrey Antukh, niwi@niwi.be 4.7.0 翻译: RaPoSpectre
阅读全文
posted @
2021-07-03 18:37
x-dai
阅读(238)
推荐(0)
记Django使用redis作缓存
摘要:####环境 Django安装django-redis pip install django-redis Linux安装redis centos为例 进入官网找到下载地址 https://redis.io/download 下载完成后解压:tar -zxvf redisxxxx.tar.gz 解压完
阅读全文
posted @
2021-07-03 15:59
x-dai
阅读(68)
推荐(0)