首先,我是优化mysql的新手.事实是我在我的Web应用程序中(每秒大约400个查询),一个使用GROUP BY我无法避免的查询,这是创建临时表的原因.我的配置是:
max_heap_table_size = 16M
tmp_table_size = 32M
Run Code Online (Sandbox Code Playgroud)
结果:临时表到磁盘百分比+ - 12.5%
然后我根据这篇文章改变了我的设置
max_heap_table_size = 128M
tmp_table_size = 128M
Run Code Online (Sandbox Code Playgroud)
结果:临时表到磁盘百分比+ - 18%
结果没有预料到,不明白为什么.
这是错的tmp_table_size = max_heap_table_size?不应该增加尺寸?
询问
SELECT images, id
FROM classifieds_ads
WHERE parent_category = '1' AND published='1' AND outdated='0'
GROUP BY aux_order
ORDER BY date_lastmodified DESC
LIMIT 0, 100;
Run Code Online (Sandbox Code Playgroud)
说明
| 1 |SIMPLE|classifieds_ads | ref |parent_category, published, combined_parent_oudated_published, oudated | combined_parent_oudated_published | 7 | const,const,const | 67552 | Using where; Using temporary; Using filesort …Run Code Online (Sandbox Code Playgroud) 我正在研究开发GraphQL API.我有一个django/elasticsearch/mysql后端,我正在弄清楚GraphQL如何适应这张图片.
我在阅读关于graphene-django项目的文章,但它似乎与Django ORM紧密结合,所以我想知道弹性搜索是否适合这个配方.
我刚刚开始这项研究,所以即使这个问题也没有意义.
关于如何做到这一点的任何线索?
我正在研究Realm Mobile Database和Realm Mobile Platform来实现离线的第一个移动应用程序.我认为我的场景很常见:
我有一个带有SQL数据库的网站,我需要一个移动应用程序来显示网站上的数据,只读数据.此应用程序最终将连接,因此我需要在客户端连接时将数据从服务器同步到客户端,然后脱机使用该数据.
我需要知道是否有人在做类似ETL的事情,以保持SQL DB与Realm Object Server同步,以便与移动客户端同步.
只需一种方法SQL - > Realm Object Server - > Realm Mobile Database.
我刚刚发现了Realm,所以我想知道这是否可行?
django ×1
graphql ×1
mobile ×1
mysql ×1
optimization ×1
performance ×1
python ×1
realm ×1
sql ×1
temp-tables ×1