tl; dr: I wonder if it is too heavy or not the presence of a large number (100+ at the moment, maybe up to 1000/2000 or more) of the baseline representations (like table cells)>
The project I'm working on revolves around planning. There one row per user, which covers 6 hours a day, is divided into 4 slots of 15 million every hour. This planning is used to add “reservations” when clicking on the slot and should handle the hanging of the correct slots, and also process when it is impossible to make a reservation, those. do not allow the user to click on the "inaccessible" slot.
There are many reasons why you can’t click the slot: the user is currently unavailable or the user is on a reservation; or the application must “force” a delay between the two reservations. Reservations (div) are displayed in the slot (table cell), and when playing with dimensions, the correct number of slots is induced.
This entire screen is processed using the trunk. Therefore, for each slot on which I am hovering, I need to check whether I can make a reservation here or not. At the moment, I use this when playing with data attributes in slots: when adding a reservation object, slots covered with "improved" (among others) reservation object (viewing object of the main area).
But in some cases, I don’t quite understand now, it mixes up, and when the kind of reservation is deleted, the slots do not “clear”: the previous class does not match reset correctly, This is probably what I did wrong or bad, but it will only be harder; I think I should use a different class of Backbone views here, but I'm afraid that the number of slots and their views will be high and cause performance problems. I do not know what js perf is, so I would like to get feedback before jumping on this train. Any other tips on how to do this would also be welcome.
Thank you for your time. If this is not clear enough, tell me, I will try and rephrase it.
source share