Skip to Content
author's profile photo Former Member
Former Member

Can I use cache in the WAS instead of accessing DDBB?


I'm programming a bsp application, and I have a menu with several options to select the one user's want to see. This html/javascript menu show options builded accessing DDBB. This produces lots of data base access. I want to know if WAS support some type of cache, to reduce the data base access.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 14, 2004 at 08:09 PM

    Hallo Antonio,

    I am a great believer of letting someone jump in on the deep side. They learn to swim very fast! But in this case, your question makes me think it is to deep at the moment. So I am going to write some ideas to you. Just decide the route to go, and we will get you swimming again. (Thanks for some answers you have appended in the past.)

    First some questions to you (we need this for later):

    - what does DDBB stand for? (DB=database)

    - is this application stateful or stateless?

    - are you using a BSP page or controller/view?

    - can you make an example in 25 lines? (just DB work, plus use tableView for display)

    (1) Databases can be cached, partially or completely in application server. This means that the selects are actually answered locally. On this, you will have to do some doc reading. Also, look in transaction SE11, technical info for the dabase you are using.

    (2) If you are running stateful, just use the onCreate of a BSP page, or somewhere in a controller/application class to read the DB once. As you are stateful, the data will not be destroyed.

    (3) If stateless, one can still store lots of information. One place is to export to shared memory. The other is to write into server side cookie (which is again stored on DB!, but just as one blob). In new Netweaver 04 you can also use a very nice feature called shared objects!

    Now first we must wait for the answers from you. If stateful, I will suggest some code restructuring. If stateless, I think the fastest is shared memory. I can write the final example quickly for you.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.