Reputation: 1553
I have model Domain and I need to check DNS records for each domain. I have two options
create model DnsRecord with fields record_type(A, CNAME,
etc), domain_id, check_result, timestamps
use field jsonb for Domain and save all records in this field
In first case table dns_records will contain a lot of records, but in seconds case not very convenient to work with data What option is better? Does anybody know better solution?
Upvotes: 0
Views: 41
Reputation: 268
I think your first option is the best because you could manipulate it individualy. If you put everithing in a json you probably will have probles on handle with this data soon. I could not think another solution for this problem. sorry.
Upvotes: 1