157a158 > //Faster implementation of the sample 159,160c160,162 < + "\" from \"" + mUri->schema + "\".\"" + mUri->table + "\" order by \"" + lstFields->currentText() < + "\" limit 25"; --- > + "\" from ( SELECT \"" + lstFields->currentText() + "\" from \"" > + mUri->schema + "\".\"" > + mUri->table + "\" limit 5000) as myfoo ";