Can the speed of a form that utilizes a drop down menu be increased? I'm generating a menu based on a query and my users are complaining the application is too slow. I'd prefer not to input a static list into the dropdown.
If it helps any, here is the code:
<form class="formsearch">
<label>Top Products</label>
<searchTemplate>index=myapp supportGroup=$supportGroup$ | top 10 productName </searchTemplate>
<fieldset>
<input type="dropdown" token="supportGroup" searchWhenChanged="true">
<label>Select Support Group</label>
<populatingSearch fieldForValue="supportGroup" fieldForLabel="supportGroup"> <![CDATA[index=myapp supportGroup | top supportGroup]]></populatingSearch>
<choice value="*">Any</choice>
</input>
<input type="time">
<default>Last 7 days</default>
</input>
</fieldset>
<row>
<chart>
<title>Top Product Names</title>
<option name="charting.chart">pie</option>
<option name="drilldown">all</option>
</chart>
<chart>
<title>Top Product Names</title>
<option name="drilldown">all</option>
</chart>
</row>
<row>
<table>
<title>Top Product Names</title>
<option name="drilldown">all</option>
</table>
</row>
</form>
What takes time is running the populating search - the 'speed' of the form will only ever be as fast as that search. So whatever you can do to make that go faster will make things better. Some suggestions:
supportGroup="*"
rather than just supportGroup
. My guess though is that any difference in performance you get is neglectable. Still, it's worth a try.What takes time is running the populating search - the 'speed' of the form will only ever be as fast as that search. So whatever you can do to make that go faster will make things better. Some suggestions:
supportGroup="*"
rather than just supportGroup
. My guess though is that any difference in performance you get is neglectable. Still, it's worth a try.