阅读Redis信息(Reading Redis Info)
我的笔记本电脑只有8GB内存,我试着对我的应用程序进行压力测试,该应用程序大量使用Redis。 当我查看INFO输出时,我无法弄清楚如何使用内存为31.83GB。 Rdb转储只有300 MB。
# Memory used_memory:34177666096 used_memory_human:31.83G used_memory_rss:412901376 used_memory_peak:34175483600 used_memory_peak_human:31.83G used_memory_lua:31744 mem_fragmentation_ratio:0.01 mem_allocator:libc
问题:
为什么Rdb转储如此之小且used_memory_human如此之大? 如何识别实际内存使用情况(INFO显示不同的内容)?
My laptop has only 8GB RAM, I tried to stress test my app, which uses Redis heavily. When I looked at INFO output I couldn't figure out how used memory can be 31.83GB. Rdb dump is only 300 mb.
# Memory used_memory:34177666096 used_memory_human:31.83G used_memory_rss:412901376 used_memory_peak:34175483600 used_memory_peak_human:31.83G used_memory_lua:31744 mem_fragmentation_ratio:0.01 mem_allocator:libc
Questions:
Why Rdb dump is so small and used_memory_human is so big? How to identify actual memory usage (INFO shows something different)?
原文:
满意答案
你需要
forceDelete
方法Model::where('condition')->where('may be other condition')->forceDelete();
或特定的模型实例:
$modelInstance = Model::find($id); $modelInstance->forceDelete();
You need
forceDelete
methodModel::where('condition')->where('may be other condition')->forceDelete();
or on particular model instance:
$modelInstance = Model::find($id); $modelInstance->forceDelete();
相关问答
更多如何确定模型是否在Laravel 4.2中使用软删除(How to determine if a model uses soft deletes in Laravel 4.2)
在laravel中使用自定义软删除列(Use custom soft deleted column in laravel)
禁止软删除的用户在laravel 4中使用Auth登录(Disallow Soft deleted User to log in using Auth in laravel 4)
Laravel 5.2软删除不起作用(Laravel 5.2 soft delete does not work)
定义模型的构造函数时,Laravel 5.3软删除不起作用(Laravel 5.3 soft deletes not working when defining a constructor for the model)
Laravel 4:表上的软删除是否也适用于它的关系(Laravel 4: Will a soft delete on a table also apply to it relationships)
覆盖模型的软删除表列(Overwriting soft delete table column for a model)
如何在postgres上强制执行软删除?(How to enforce soft deletes on postgres?)
laravel 5:软删除(laravel 5: soft delete)
如何覆盖laravel中的软删除(How do I override soft deletes within laravel)
相关文章
更多redis主从从架构搭建-redis集群管理
redis sentinel(哨兵) 配置详解-redis集群管理
redis 集群环境搭建-redis集群管理
Redis Cookbook
Redis概述
redis主从复制(读写分离)-redis集群管理
redis安装-redis集群管理
基于linux下redis安装与配置
基于window安装redis
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!