I am fetching some 1000 records precisely from MySQL using PHP in a drop-down box, data loads on page reload and it is showing in console too, but whenever I click data shows in drop-down really slowly/delay.
PS: Cannot opt for caching Redis or other.
SQL Query is like- 'select user from table'
//users are 1000
PHP Script:
<select name="wname" id="Publication" class="form-control" required>
<option value=" ">Select Publication</option>
<?php
$select = "";
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
?>
<option value="<? echo $row['Id']; ?>"<? if($row['Id']==$select){ echo "selected"; } ?>>
<?
echo $row['users'];
?>
<?php
}
?>
</option>
</select>