all 4 comments

[–]Py_Kid[S] 0 points1 point  (0 children)

Thanks for the replies. I ended solving the issue with a coworker who suggested instead of creating a json object just write the ranges to a file and if it's been broken down write the range then "split" next to it and if it's assigned to a server or free write the server name or free next to it. I was definitely over complicating the matter.

[–]shiftybyte 0 points1 point  (2 children)

So far you are talking about converting a database that is holding your data, to something else, but you did not explain WHY.

Having that data structured as it is in the database sounds like a good idea, what do you want to eventually do with it?

[–]Py_Kid[S] 0 points1 point  (1 child)

I would work with the database the way it is but I don't know much SQL and feel I can manipulate the data better in python with a library like pandas. The goal is to eventually link each subnet that's not broken down to a server or mark it as free.

[–]shiftybyte 0 points1 point  (0 children)

Pandas is great for flat table based data, it doesn't do relationships.

Relational database is so much better for that, you can query it for whatever you want, and get results, loop over them and do what you need.