I'm looking for a way to handle a big struct.
I want to understand how to create an account storing more than 10_000 structs inside is possible.
Is there a simple way to do it? Or should I have to implement an account storing many accounts storing structs?
I was looking at https://github.com/solana-developers/program-examples but didn't find anything related to this use case.I was thinking about something like that but it's not working and it reachs the transaction size limit:
#[account]#[derive(InitSpace)]pub struct Data { #[max_len(10000)] pub indexes: Vec<UserData>,}#[derive(AnchorSerialize, AnchorDeserialize, Clone, Default)]pub struct UserData { pub name: String, pub owner: Pubkey, pub image: String,}
Thanks for the help