I am working on a side project, which is a pretty serious matter; my question is about the efficiency obtained by using the BOOLEAN value to determine if additional data processing is needed.
For example: if I had a table listing all the creatures. Another table, which was relational in nature, indicated the period of their hibernation and the calories consumed every day during hibernation.
Is it effective to have a value inside the table (Creatures) for the "sleeping" BOOLEAN.
If true, go to the "hibernation_creature_info_relations" table and find the creature with this identifier and return this information.
This means that for all creatures whose value for "hibernates" = false, SQL will not allow searches on the large table "hibernation_creature_info_relations."
Or, when using the identifier, the process is checked so quickly in the hibernation_creature_info_relations table so fast that it will actually have a greater impact on performance if you process the argument that based on whether the value of the sleep mode is set to true or false?
Hope this was enough information to help you understand what I am asking, if not, let me know so that I can rephrase or include more detailed information.
source share