Home > Back-end > Knowledge to explore stick, welcome to come in and have a look
Knowledge to explore stick, welcome to come in and have a look
Time:11-23
Problem a: just don't work, the company a lot of code headache, who only need a table in the database of individual fields, have to find out the whole entity class to come out, it will not affect the efficiency of the query?
Question 2: the company of some of the data is preserved by level table, such as according to the points in time, then I need to cross table query, for example to deal with the date of the coming I like write the service layer, and then the heads of the original ready to write good, let me with the data before writing the code finds out I need less than 5 seconds, written in the original JDBC inside the dense, equally large amount of data, with more than 1 minute, anyway, very slowly, so good?
CodePudding user response:
As group leader, said can't throwing
CodePudding user response:
Problem a: you're right, according to your Problem two: leader's right, listening to the group leader
CodePudding user response:
Problem a: use the entity data to map database table, this is the normal operation, although you are worried about performance problems, but the years of experience tells us that this performance sacrifice is worth it, Question 2: if the customer not strong performance requirements, the boss will not care about performance issues (don't want you to waste time here), a big deal to write a set of, this is the common fault of the small company boss,