database design - Tarantool Data Modelling Relationships -


i'm building app needs model of business. model goes this:

company: {   id (primary index)   name   description   humans: [id_human1, id_human2, id_human3],   jobs: [id_job1, id_job2, id_job3] }  human: {   id (primary index)   company: id   job: id   name   age }  job: {   id (primary index)   job_name   humans: [id_human1, id_human2, id_human3]   companies: [id_company1, id_company2, id_company3] } 

i able following queries: - companies have job_id = 1. - humans work company_id = 2. - jobs company_id = 1 or - humans have job_id = 1 , company_id = 2.

how should model above information in tarantool , keep relationships between data, while keeping queries fast?


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -