临时内存表速度很快,但是又不支持text解决办法

WBOY
Release: 2016-06-13 10:11:34
Original
1040 people have browsed it

临时内存表速度很快,但是又不支持text
想从原来的表数据结构直接复制到临时表里操作查询,结果其中一个是text,又没办法减少数据内容,varchar又放不下。要么修改数据表,重新将text 內的 序列化数组拿出来放,要么内存表联合查询这个text.要么...怎样呢?将原有数据创建一个临时内存表,再将text 内容单独取出再创建一个临时内存表 两个表联合查询? or?

------解决方案--------------------
text 参与查询么?
如不参与,仅是取得数据,那就分两步走
1、通过内存表获取主键
2、通过主键获取text
应该比关联来的快

内存表中只放与查询相关的字段,毕竟内存是有限的,而且价格不菲
------解决方案--------------------
学习……
送给 牛牛 一张 头像:

------解决方案--------------------
恩。要是有资本。用内存表还是很快的。 让该出钱的人加内存。。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!