avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mick <michal.one1...@gmail.com>
Subject Simple Data model of repository
Date Fri, 25 Oct 2013 08:08:22 GMT
Hi,

What would be the best way to represent in IDL a repository(id,stores) 
with many stores(id,content) considering efficiency and speed. Eg:
Repo1{
     id
     store1{
         id
         content
     }
     store2{
         id
         content
     }
     store3{
         id
         content
     }
}

I could put it in
1)
record store{
     string id;
     array<content> storeContent;
}
record repo{
     string id;
     array<store> stores;
}
2)
record store{
     string id;
     array<content> storeContent;
}

array<store> repo();

3)
record store{
     string id;
     array<content> storeContent;
}

map<store> repo();

Or maby there is some other schema that would be optimal regarding such 
simple data model?

Best,
Mick



Mime
View raw message