How cache is implemented in web application for DB queries?

Answers were Sorted based on User's Feedback



How cache is implemented in web application for DB queries?..

Answer / bhanu, patna(bihar)

Many e-Business applications today are being developed and
deployed on multi-tier environments involving browser-based
clients, web application servers and backend databases. The
dynamic nature of these applications necessitates
generating web pages on-demand, making middle-tier database
caching an effective approach to achieve high scalability
and performance [3]. In the DBCache project, we are
incorporating a database cache feature in DB2 UDB by
modifying the engine code and leveraging existing federated
database functionality. This allows us to take advantage of
DB2's sophisticated distributed query processing power for
database caching. As a result, the user queries can be
executed at either the local database cache or the remote
backend server, or more importantly, the query can be
partitioned and then distributed to both databases for cost
optimum execution.DBCache also includes a cache
initialization component that takes a backend database
schema and SQL queries in the workload, and generates a
middle-tier database schema for the cache. We have
implemented an initial prototype of the system that
supports table level caching. As DB2's functionality is
extended, we will be able to support subtable level
caching, XML data caching and caching of execution results
of web services.

Is This Answer Correct ?    1 Yes 0 No

How cache is implemented in web application for DB queries?..

Answer / amar&venky

1)Memory or disk caching can be used directly to avoid running duplicate queries. A complex data report, for example, can have its result sets serialized to disk for reuse in multiple page templates. Caching has its own overhead, such as the expense of reading and parsing data on disk, so simple and inexpensive queries are most often best left for the database to process.
2)ORM modules can be built to retain objects in memory. For the first request, the data object is loaded into memory. Any updates or further requests can be managed in memory, with data written back to the database immediately or later, such as during system shutdown. In this way the ORM is effectively a buffer between the web application logic and the database server.
3)Caching partial page content can help avoid rerunning queries when that content is required multiple times.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Define thread?

0 Answers  


What is data binding c#?

0 Answers  


What is difference between write and writeline in c#?

0 Answers  


What is difference between internal and protected internal in c#?

0 Answers  


How are methods overloaded?

0 Answers  






How can you prevent escaping on backslashes in C# with string definitions?

0 Answers   Siebel,


What is jagged array in c#?

0 Answers  


What is the difference between interface and functional interface?

0 Answers  


What is the difference between ref & out parameters?

2 Answers  


Can abstract class have parameterized constructor?

0 Answers  


What are the Features in .net framework 1.1

0 Answers   Digital GlobalSoft,


What is the difference between disposing of () and finalize() methods in c#?

0 Answers  


Categories