本文介绍了系统OutOfMemory异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨我在Mysql上检索500万条记录时一直收到OutOfMemory Excemption
是否有可能在Mysql上检索数百万条记录?
Hi I keep receiving OutOfMemory Excemption when retrieving 5millions of record on my Mysql
is their any possible way to retrieve Millions of Record on Mysql ?
Using con As New MySqlConnection(conStr)
con.Open()
xTrans = con.BeginTransaction
Using cmd As New MySqlCommand("LIMIT", con, xTrans)
cmd.Parameters.AddWithValue("@LimitFromTo", LIMIT)
cmd.CommandType = CommandType.StoredProcedure
cmd.Prepare()
Using conDap As New MySqlDataAdapter(cmd)
conDap.Fill(ds)
End Using
End Using
xTrans.Commit()
con.Close()
End Using
推荐答案
这篇关于系统OutOfMemory异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!