Greetings! I have been delving into the world of programming for a while now, striving to enhance my skills. Currently, I am faced with a dilemma:
Within my backend application, administrators have the capability to add courses to our website.
One feature involves admins being able to establish multiple time schedules for each course.
My current method involves generating a temporary index (uid) when the admin selects the create button. As schedules are added, the information is stored in a temporary database table along with the uid. Once all details are filled in and saved, a query is executed to transfer the data from the temporary table to the newly created program's id. However, this approach seems inefficient as it requires frequent database interactions for every action within the scheduling process (CRUD operations). Although I researched alternatives like local storage or sessions, they don't seem suitable for my specific scenario. Lately, I have been experimenting with Vue.js and considering storing the temporary schedule in a data variable for better handling.
I would greatly appreciate any advice on best practices for this situation, whether related to Vue.js or traditional JavaScript. Your insights would be invaluable!