Is it possible in request env add "Select top" and "radndom" option?
test = http.request.env['my.test'].sudo().search([('type','=',1)])[0]
return http.request.render('my_page', {'test': test})
I don't need return all data from database only top 10.