caching

SQL Caching and Entity Framework

半腔热情 提交于 2019-12-31 14:49:23
问题 I have put together a small ASP.NET MVC 2 site that does some very extensive date mining/table-joins/etc. Using MVC, I have a controller that returns the data in many different forms (tables, images, etc). To save hitting the database frequently I have a dual cache mechanism: For identical parameters to the same action I use the OutputCacheAttribute with VaryByParam = "*" . Assuming some parameter to the action has changed (or another action is called), it is still possible that my "data" has

SQL Caching and Entity Framework

巧了我就是萌 提交于 2019-12-31 14:49:06
问题 I have put together a small ASP.NET MVC 2 site that does some very extensive date mining/table-joins/etc. Using MVC, I have a controller that returns the data in many different forms (tables, images, etc). To save hitting the database frequently I have a dual cache mechanism: For identical parameters to the same action I use the OutputCacheAttribute with VaryByParam = "*" . Assuming some parameter to the action has changed (or another action is called), it is still possible that my "data" has

JavaScript synchronization options

有些话、适合烂在心里 提交于 2019-12-31 13:48:47
问题 I was wondering whenever exists a solution to perform synchronization in JavaScript code. For example I have the following case: I'm trying to cache some response values from AJAX call, the problem is, that it's possible to perform simultaneously several calls, therefore it leads to race condition in the code. So I'm very curious to find solution for that? Any one has idea that to do? 回答1: I can offer a possible solution, but without seeing the code ... not completely sure what you are doing,

JavaScript synchronization options

一笑奈何 提交于 2019-12-31 13:47:12
问题 I was wondering whenever exists a solution to perform synchronization in JavaScript code. For example I have the following case: I'm trying to cache some response values from AJAX call, the problem is, that it's possible to perform simultaneously several calls, therefore it leads to race condition in the code. So I'm very curious to find solution for that? Any one has idea that to do? 回答1: I can offer a possible solution, but without seeing the code ... not completely sure what you are doing,

Caching downloaded JSON data to SQLite database - is it a good idea?

ε祈祈猫儿з 提交于 2019-12-31 13:15:13
问题 In my app I have to download JSON data from numerous web services. The data classes I use are fairly complex ones (lots of properties, quite deep inheritance tree, etc.). I intend to do caching, using a single db table, where I'd store the downloaded JSON data in a VARCHAR column (along with other meta-data containing columns). JSON serialization is being done with the Gson library. It seems quite convenient to just dump the instances into JSON, and parse them again later when I need them. No

Caching downloaded JSON data to SQLite database - is it a good idea?

こ雲淡風輕ζ 提交于 2019-12-31 13:15:07
问题 In my app I have to download JSON data from numerous web services. The data classes I use are fairly complex ones (lots of properties, quite deep inheritance tree, etc.). I intend to do caching, using a single db table, where I'd store the downloaded JSON data in a VARCHAR column (along with other meta-data containing columns). JSON serialization is being done with the Gson library. It seems quite convenient to just dump the instances into JSON, and parse them again later when I need them. No

Google Maps v3 - Map tile caching on client?

孤街浪徒 提交于 2019-12-31 09:44:49
问题 I'm using Google Maps JS API v3 for a project. Is there a way to ask the map to cache tiles on the client's machine so that when they refresh the browser, the tiles don't have to all download again? Many of my clients are on cellular connections where redownloading the map takes a considerable amount of time. Thanks! 回答1: By default google maps return's cached images (you can see this in the network tab of the console). If you user's having trouble caching the images, it's probably because

Google Maps v3 - Map tile caching on client?

。_饼干妹妹 提交于 2019-12-31 09:42:53
问题 I'm using Google Maps JS API v3 for a project. Is there a way to ask the map to cache tiles on the client's machine so that when they refresh the browser, the tiles don't have to all download again? Many of my clients are on cellular connections where redownloading the map takes a considerable amount of time. Thanks! 回答1: By default google maps return's cached images (you can see this in the network tab of the console). If you user's having trouble caching the images, it's probably because

What's the difference between the HttpRuntime Cache and the HttpContext Cache?

六眼飞鱼酱① 提交于 2019-12-31 09:17:29
问题 I know there is a very similar question here but I was hoping to get a better explination. Why would I ever use HttpContext.Cache instead of HttpRuntime.Cache if the HttpContext really uses the HttpRuntime.Cache behind the scenes? In the article Simulate a Windows Service using ASP.NET to run scheduled jobs Omar uses the HttpContext to store his cache items, but when Jeff Atwood Implemented it here he chose to use the HttpRuntime instead. Obviously in this particular situation it makes sense

What's the difference between the HttpRuntime Cache and the HttpContext Cache?

ぐ巨炮叔叔 提交于 2019-12-31 09:17:25
问题 I know there is a very similar question here but I was hoping to get a better explination. Why would I ever use HttpContext.Cache instead of HttpRuntime.Cache if the HttpContext really uses the HttpRuntime.Cache behind the scenes? In the article Simulate a Windows Service using ASP.NET to run scheduled jobs Omar uses the HttpContext to store his cache items, but when Jeff Atwood Implemented it here he chose to use the HttpRuntime instead. Obviously in this particular situation it makes sense