activeadmin / activeadmin/activeadmin-mongoid

Order field got multilpe same query

Đang mở
#167 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Ruby
Star
195
Fork
200
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.