Firebird与EntityFramework锁定(Firebird locking with EntityFramework)
我创建了使用EntityFramework连接到Firebird服务器的简单WinForms应用程序。 数据库只包含一个包含4个字段的表(Id,FirstName,LastName,Email)。 当我并行运行thre不同的查询更新不同的字段我有异常与消息“无等待交易锁冲突”。 是EF特定的行为还是我需要调整Firebird服务器的使用字段级锁定?
I created simple WinForms application that connect to Firebird server using EntityFramework. Database contains only one table with 4 fields (Id, FirstName, LastName, Email). When I run in parallel thre different query for update different field I've got exception with message "lock conflict on no wait transaction". Is it EF specific behavior or I need to tune firebird server for usage field level locking?
原文:https://stackoverflow.com/questions/40154116
最满意答案
UIL根据您的要求提供LimitedAgeDiscCache选项。
LimitedAgeDiscCache (大小不受限制的缓存,有限文件的生命周期。如果缓存文件的年龄超过定义的限制,则它将从缓存中删除。)
.discCache(new LimitedAgeDiscCache(cacheDir, 14400))
UIL provide LimitedAgeDiscCache option for your requirement.
LimitedAgeDiscCache (Size-unlimited cache with limited files' lifetime. If age of cached file exceeds defined limit then it will be deleted from cache.)
.discCache(new LimitedAgeDiscCache(cacheDir, 14400))
相关问答
更多-
您是否尝试过CreateOptions="IgnoreImageCache" ?
UIL OutOfMemory(UIL OutOfMemory)[2023-10-01]
public void initImageLoader(Context context) { // UNIVERSAL IMAGE LOADER SETUP DisplayImageOptions defaultOptions = new DisplayImageOptions.Builder() .showImageForEmptyUri(R.mipmap.save) .showImageOnFail(R.mipmap.save).rese ...Android:UIL我希望能够多次加载相同的图像(Android: UIL I want to be able to load the same image multiple times)[2019-12-30]
我解决了我的问题。 对于那些仍在寻找答案的人来说,我所做的是: String uri = "http://192.168.2.8:3000" + articlesArray.getJSONObject(i).getString("icon"); ImageLoader imageLoader = ImageLoader.getInstance(); ImageSize targetSize = new ImageSize(37, 32); ...UIL更新缓存的图像(UIL update cached images)[2022-04-08]
UIL具有多线程图像加载(异步或同步)。 请参阅github上的库功能。 您可以在光盘上启用缓存(设备的文件系统或SD卡) .cacheOnDisk(true) 。 库从此缓存加载图像。 禁用光盘缓存.cacheOnDisk(false)并在Activity中编写以下代码: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ... ...图书馆并不真正支持这一点。 如果您需要进行这种更高级的缓存管理,可以使用Picasso( https://github.com/square/picasso ),您可以在其中设置自己的缓存管理器并对缓存的图像进行更多控制。 That is not really supported by the library. If you need to do this kind of more advanced cache management, you can use Picasso (https://github. ...LRUCache是对象的内存缓存。 它与文件系统上的任何内容无关,并且在会话期间不会持久存在。 如果要从服务器下载文件并将其固定,则需要将它们保存到文件系统中。 然后,如果您正在处理大量图像,则可能需要将Bitmap对象放入LRUCache中。 The LRUCache is an in memory cache for objects. It has nothing to do with anything on the file system, and it is not persistent acros ...UIL根据您的要求提供LimitedAgeDiscCache选项。 LimitedAgeDiscCache (大小不受限制的缓存,有限文件的生命周期。如果缓存文件的年龄超过定义的限制,则它将从缓存中删除。) .discCache(new LimitedAgeDiscCache(cacheDir, 14400)) UIL provide LimitedAgeDiscCache option for your requirement. LimitedAgeDiscCache (Size-unlimited c ...Android将缓存的图像加载到RecyclerView重新排列网格中(Android Loading cached images into RecyclerView rearranges grid)[2022-07-11]
好的,我已经解决了我的问题。 问题是API和数据结构也是我的代码,所以我开始存储SQLite thimbs大小。 这样我可以在“OnBindViewHolder”中设置单元格大小,如下所示: TableRow.LayoutParams params = new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, articleList.get(position).getCover_height()); holder.cont ...我已经意识到displayImage有一个预期的DisplayImageOptions参数。 所以我用自定义参数创建了一个 DisplayImageOptions customOptions = new DisplayImageOptions.Builder() ... .extraForDownloader(headers) .build(); 然后在加载器中确保路径每次都不同,我用#实现它 path = path+"#"+my_unique_id; lo ...FragmentPagerAdapter + BaseAdapter + UIL未更新(FragmentPagerAdapter + BaseAdapter + UIL not Updating)[2022-02-12]
两个片段实例之间的唯一区别是您的参数Bundle mSortType根据页面设置为0或1 。 您只能使用它来设置mThemes ,这在您的ImageAdapter似乎从未使用过。 因此,如果您希望两个ImageAdapter实例返回单独的结果,则需要注意mSortType或者根据页面改变它。 Ok, I found the answer but I don't know why. I had to change the following from: ArrayListimageAdapte ... 相关文章
更多- 子查询语句怎么就 锁定连接呢?
- SQL Server 2000 如何锁定表中的行,使其他线程读取该行时候发生sql异常,不能读取?
- ReentrantLock有什么用处?
- Ext 3.1版本放出,可以免费下载了
- [咨询]想要换个数据,现在使用MSSQL,想换个免费开源的
- 在Linux里将某个用户安装的Eclipse共享给其他用户使用
- jQuery表格插件jqGrid(jquery.jqGrid.js)
- [c#]asp.net开发微信公众平台(2)多层架构框架搭建和入口实现
- MySQL 5.6 my.cnf 配置文件详解
- 双开微信历程....最终失败....
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)