1
I’m making a system for a college and one of the subsystems that I’m building is the student report card. I put for when creating a new discipline in the "discipline" table this discipline is added to the "grades" table with a record for each id of each student enrolled in the course that the discipline belongs to and with the note field in these new records.
The table notas
would be more or less like her structure:
id int(11)
iddisciplina int(11)
idcurso int(11)
idaluno int (11)
nota int(11)
But doing it this way, with a large number of students it would generate a lot of data and when I needed to delete a course for example, I would have to go around sweeping all the notes related to this course and disciplines and this would have a great performance cost.
There’s some better, more optimized way to do this?
There are some other related items like student files, forums, messages etc... I didn’t put the code in because it’s too long, so I thought I’d just ask the essentials. I imagined that there would be no other way than relations by indices, but I asked to remove this doubt that I was having. The first version of this system was taking a little too long to do these operations but I believe it is because it was in a shared hosting and with few processing resources.
– Leandro Silva Campos
I think it is by problem elsewhere. But I have no way of knowing where without knowing the system.
– Maniero