数据库连接超时问题 [英] Database connection timeout problem
本文介绍了数据库连接超时问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将数据库中的图片保存为二进制文件,程序甚至在网络数据库之外,查询并保存图片旧的超时,我想知道有没有办法可以保存图片并快速查询?
I save a picture in the database as a binary, with the program even outside the network database, query and save the picture old timeout, I want to know is there any way you can save a picture and it makes queries quickly?
推荐答案
告诉我们更多关于数据库的信息,但最初是为了b * b $ b $ / b
索引表以适应查询是一个好的开始
bryce
tell us more about the database, but initially
index the table to fit the query might be a good start
bryce
我们可以通过两种方式快速实现/>
1.将图像存储在物理路径中,图像名称存储在数据库中
2.索引表格
We can make it quickly by tow ways
1. storing the image in physical path and image name in database
2. Indexing the table
关于在数据库中保存图像文件,请查看此答案由PO'H
存储图像,PDF和声音文件 [ ^ ]
关于超时,检查这些
肮脏的方式
增加SQL连接 [ ^ ]
增加 SQL命令 [ ^ ]。
好方法
使用 SQL Server Profiler [ ^ ]
如何通过分析Profiler输出来识别SQL Server性能问题? [ ^ ]
SQL Server最佳实践 [ ^ ]
About saving images file in database, check this Answer by PO'H
Storing images,pdf and sound files[^]
About timeout, check these
Dirty ways
Increase timeout for SQL connection[^]
Increase timeout for SQL command[^].
Good ways
Use SQL Server Profiler[^]
How to identify SQL Server performance issues, by analyzing Profiler output?[^]
SQL Server Best Practices[^]
这篇关于数据库连接超时问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文