Question about map variables

Does anyone know how many key-value pairs a map variable can hold? Is there a limit?

And, when the map is being called on for a function, are all of the keys and values in memory at that point in time? Only the keys?

If I have a data table that contains a row that is just a struct that contains a map, will all the maps always be in memory?

Thank you very much!

2^64-1 key value Wich I think is around 50k. And I believe only the value you have called will be in memory I’m not 100% on that though, when calling a data table row I believe the entire row will be in memory

Awesome. Thanks for your help!

And for data tables, it’s just the row that’s in memory, not the whole table? I think that’s what somebody told me at one point

Hi,

If i’m not mistaken its the entire table in memory. Same for variables.

:thinking: close enough I guess. Looks like a quintillion to me.

If you question it, you’re definitely ready for:

1 Like

Great video definitely gonna be reviewing this and applying some knowledge to my project :muscle: