union all效率低下,该用存储过程、视图、临时表哪种方法来解决?该如何解决
Jun 13, 2016 am 11:19 AM
union all效率低下,该用存储过程、视图、临时表哪种方法来解决?
union all效率低下,大概union all数十张表,单表select仅需0.0003-0.002秒,但union all后需要0.6秒左右
想改善下效率
这种情况该用存储过程、视图、临时表哪种方法来解决?
------解决方案--------------------
数据量有多大啊?要达到分表的情况下了。分表的话,这种水平分也不合理吧。
------解决方案--------------------
union all 之后还做了order之类? 要不不该差这么大啊

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solution: Your organization requires you to change your PIN

How to adjust window border settings on Windows 11: Change color and size

How to change title bar color on Windows 11?

How to enable or disable taskbar thumbnail previews on Windows 11

OOBELANGUAGE Error Problems in Windows 11/10 Repair

10 Ways to Adjust Brightness on Windows 11

How to turn off private browsing authentication for iPhone in Safari?
