I am creating an android app, part of which utilises the twitter4j library to retrieve information from twitter, however, the app runs very slowly on the twitter activities.
I have not implemented caching yet, and am hoping that should improve the performance, does anyone have any advice for caching twitter4j calls on android?
alternat...
I am developing an ASP MVC application using Entity Framework. I was thinking of writing code to cache the object returned by ModelBuilder (as is recommended by several sources), but then I ran into this on Scott Gu's blog:
"The OnModelCreating method above will be called the first time our NerdDinners class is used within a running app...
We have an entire table of entities that we need to load during a hibernate session and the only way I know to load all entities is through an HQL query:
public <T> List<T> getAllEntities(final Class<T> entityClass) {
if (null == entityClass)
throw new IllegalArgumentException("entityClass can't be null");
List<T> list ...
I have a result set returned from a database that takes a few seconds to run. To increase performance I'm going to cache the results for up to 30 minutes. The call to the database takes a date parameter, a date within the next 60 days that the user selects from a calendar.
Here is a code sample that uses a list of strings to keep the e...
In an ASP.NET web app written in VB.NET, I need to load and store a large read-only hash table that is frequently accessed by the application. It only needs to be loaded once on application start, is never updated and can be accessed by any session at any time.
If I load the hash table into a private member in a (global) module, a look...
I got some objects with certain values, for example:
(1)
struct massPoint {
double pos;
double vel;
double acc;
} objects[LOTS];
or the same in arrays:
(2)
double pos[LOTS];
double vel[LOTS];
double acc[LOTS];
First question: Is it right if i call (1) padded data and (2) serial data?
Second question: If i do some oper...
Hey there.
I am generating XML using linq to XML (XElements etc) from the database and with specific times. The biggest issue is that this XML will not change that often so i am trying to cache it in the code behind.
Basically my code looks something like this:
XDocument x = new XDocument(
new XElement(ns + "SomeRandomDate", DateT...
Dear All,
I am developing ASP.NET application and I have problem with the EF 4.0 model.
The EF model detects the newly added and deleted data, but not the modified data from the database.
Here is an example of the problem what I have.
A- Database:
Script to generate the "Employees" database table
CREATE TABLE [dbo].[Employees]
(
...
I have a wordpress based site which makes use of a full page caching system. Problem is that I need to add dynamic content for logged in users. Right now I'm keeping the caching enabled for non-logged users and disabled for the logged ones via cookie check.
Would inserting the dynamic content in an iframe be an acceptable solution to ex...
I need to implement a application which has a priority queue which has more than 100M records .My problem is I am not able to keep all this data in memory i need to store it into disk . Is there any cache solution where I can store all this message into disk such Berkeley db cache .
...
When I run the following logic:
1) from Page1.aspx
Response.Redirect("Page2.aspx?Params...")
2) from Page2.aspx Page_Load event
Response.Redirect("Page1.aspx")
The Page1 OnPreRender event does not fire if the browser is IE8. Its ok with Firefox.
It seems that the browser is loading a cached version of the page.
Any idea how to f...
I have got myself saddled with an existing application - which attempts do do a lot of things by itself and does most of it badly!
This application is an ASP.net 3.5 Web application having the typical UI -> Business --> DAL kind of pattern.
The problem i am faced with is the fact that when multiple users are requesting the same informa...
How can i disable absolutely all caching on for an asp.net website? I have problems with asp:literal caching its values and it's annoying as hell. Don't tell me it's a bad idea to do that, since it's for a development version only. I think it's called output caching, but i might be wrong.
Thanks for the help
...
I have an expensive WebRequest that I know can be cached.
Is there an existing solution that allows caching of web requests based on Last-Modified/If-Modified-Since and (optionally) ETags?
...
I have enabled 2nd level cache in FluentNHibernate:
Fluently.Configure()
.Database(MsSqlConfiguration.MsSql2005
.ConnectionString(connectionString)
.Cache(c => c.ProviderClass<SysCacheProvider>().UseQueryCache())
)
.Mappings(m => m.FluentMappings.AddFromAssemblyOf<PersonMap>())...
I have a sitecore page with an ASP dropdownlist, and the data on the form is populated from the selected value of the dropdown. When the selected item of the dropdownlist is changed, a postback is fired. In the postback, the new selected item is added to the querystring and the user is redirected (for linkability).
I recently enabled HT...
I'm trying to access the Application State from a utility class in the web application but I'm not sure of the best way to do it. I looked for a static member but there is none of use (I was thinking somewhere along the lines of HttpContext.Current).
The best solution I found so far is to have a member in the utility class that will be ...
Hello,
I'm using the Jquery UI autocomplete on an existing project. Well, the performance is dog slow, especially when executing the
input.autocomplete("search", "");
My solution was to cache the information, so even though its dog slow it only occurs once. I think I'm missing a very simple Javascript bug and I would really apprec...
In Windows Phone 7 how can I save a BitmapImage to local storage? I need to save the image for caching and reload if it is requested again in the next few days.
...
Hi, this should be pretty simple.
I have LINQ to SQL (C# 3.5 / SQL Server) working well, with a simple relationship in place between two tables Conferences and ConferenceAttendees.
I have already created and committed a Conference, then I add 3 ConferenceAttendees using the following code (repeated 3 times):
ConferenceAttendee NewAtte...