activeadmin / activeadmin/activeadmin-mongoid

Order field got multilpe same query

Aperta
#167 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Ruby
Stelle
195
Fork
200
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Did you find a bug?

Yes

I use Mongodb for database. When I click sort random column. It got more then 10 queries all same. My table have more than 5 millions record so it took very long time to finish
![Screenshot 2022-12-01 at 08 21 55](https://user-images.githubusercontent.com/25498082/204943057-854d2fc0-b9b3-44cf-841b-a3a86eba8c6b.png)

### Expected behavior

Should be 1 query

### Actual behavior
![Screenshot 2022-12-01 at 08 19 59](https://user-images.githubusercontent.com/25498082/204942837-4f108301-7c93-49fa-8030-2eae9fc33185.png)

[our bug report template]: https://github.com/activeadmin/activeadmin/blob/master/tasks/bug_report_template.rb

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.