L
L
littleguga2015-12-07 16:16:04
Database
littleguga, 2015-12-07 16:16:04

How to store data (class schedule)?

There is an xls file that is converted to .json and only then parsed.
The structure is like this:
d5187b0a9dc94a11a25c7a85f032645f.jpg
There is a group. 6 days, 6 lessons, each lesson has a name, an audience, a teacher.
1. Make a lot of .json, one for each group (about 1000 in total) and pull them when needed.
2. Store in the database: id-group-array of values ​​3. Store
in the database: id-group-day-pair-name-audience-teacher times, not just one day. 2. It will be necessary to update this schedule once a month (sometimes more often) (sometimes only one group, sometimes all) What is the best way to store data?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2015-12-07
@littleguga

json was not invented for storing data, it is a format for packing data, transferring it in one piece, on the other hand, unpacking it while preserving the structure.
Therefore, of course, it is better to store in the database, from where to pull the necessary data. You can design a database in any way convenient for you. One table, ten tables...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question