Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the Information Cache?

cache
0
0 Posted

What is the Information Cache?

0
0

The Information Cache is the TosInfoCache component that is typically added to your projects data module. It provides a single reference point for up to 20 other Business Object datasets. The CachedList method is provided for all Business Objects within a TosDbRecord to lookup a specific dataset class, and then locate a specific object using the dataset find methods (i.e. FindByString). The purpose of the TosInfoCache is to eliminate the need to access the database within your Business Objects for commonly and frequently required reference tables such as CustomerTypes or CustomerStates. The following code logic to lookup the customer state object so that the state name can be provided instead of the status code is quite typical in many applications. CurrentState is a computed field that provides the name of the customer state instead of the code value. The performance benefits of this approach are very substantial if you consider the effect of loading hundreds of customers in a grid an

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123