hello ! i really appreciated your comments

i have some question right know :
Āæ what happens if in one case i wanna get all the approves of one account ?
Āæ can i do that with a mapping ?
i am thinking converting the mapping to array and after that returns in a function, but i donāt know if that is possible, Āæ and if is possible , is a good way to store for example 2k into a mapping, for example the transactions requests ?
and Āæ is possible to return 2k of transactions in a public view function ? i thinking the public view has limits for returned values
Now from my experience having the for loop to catch duplicate owners is actually less expensive for gas in the case where you only have one or two owners. but if your wallet could have like 10 plus owners then it becomes more efficient because the worst case scenario is that the you would have to loop over the entire array just to find out that the owner you adding is unique.
i thinking the same, one thing is 3 iterations in a for loop , and another is 2k iterations because thats gonna be more expensive, if the info that i wanna store is a lot may be the best way is use a mapping
know i am thinking what happens if i have 10k of transactions, for example in real cases that can be possible, Āæ how exactly i can return 10k of transactions ?, the only way that i thinking right know for more speed response is storing the transactions in a db like mongodb after the functions is called, for example :
function transfer => emit transfer => websocket capture the transfer in the backend => store in mongodb => returns all the transfers for the final user
i dont know if this is the best idea but i really dont know if it possible to return 10k of data in a public view function and what speed is gonna be
with the method that i thinking ( storing in db ) when the final user wants to see the transfers has more speed of response, obviously is not a decentralized method to get him but is more fast if the case is 10k of transactions
if you have some ideas about this please let me know, i really appreciated your comments and sorry if you cant understand my english, i am still practice
