开发者

Chrome's HTML5 Web Database is very slow on some Windows configurations

开发者 https://www.devze.com 2023-02-10 04:15 出处:网络
I am developing a Chrome app. I\'ve noted that the app is about 1000 times slower when runing on Chrome for Windows XP. I have tested it on Chrome for Windows7, Ubuntu and Mac Os, it runs as expected

I am developing a Chrome app. I've noted that the app is about 1000 times slower when runing on Chrome for Windows XP. I have tested it on Chrome for Windows7, Ubuntu and Mac Os, it runs as expected there.

Is there any known issue with Chrome's web database on XP?

My app has only one table with about 500 rows and the que开发者_如何学Pythonry is very simple: SELECT * FROM users WHERE userid = ? userid is an index.

UPDATE: Other important thing is that I run the same query about 1000 times, so must of them get delayed. I have reproduced the behaviour on Windows 7 too, so I'am not sure which configuration makes this to go so slow.


For what it's worth, the reason that queries were slow for me was that I was using one transaction for every single insert.

See How to speed up the process when inserting 1000's of records into sqlite using HTML5 for more information.

0

精彩评论

暂无评论...
验证码 换一张
取 消