How to quickly use each element in an array as a condition to query #7177
Unanswered
xiongyejun
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For each element in the array, take the operation, the result should be saved in the original array, using the for loop is too slow:
for i := 0; i < len(arr); i++ { db.Table(tbname).Where(arr[i]).Where(swhere).Order(sorder).Take(arr[i]) }
Beta Was this translation helpful? Give feedback.
All reactions