activeadmin / activeadmin/activeadmin-mongoid

Order field got multilpe same query

未關閉
#167 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Ruby
星號
195
分支
200
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。