I am creating a visual force page. Inside on it, is an
<apex:selectRadio> wherein when I select one of the radio, it will get data from controller and rerender some
outputpanel of my page. I am using
<apex:actionSupport> to do it. I am using 2 way to do the query. First, I've tried to query data from the database every time I select the radio button and the second way is that I query all value from the database that I needed and I store it in
Map, and everytime I select a radio button I will get some data from the map. I am confuse what is the best thing to do to make the processing faster. In your own idea, what is faster in the 2 method i've tried. Please give me your idea about this.