Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro, mail # user - Simple Data model of repository


Copy link to this message
-
Simple Data model of repository
Mick 2013-10-25, 08:08
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