added trace logs
This commit is contained in:
parent
254b13827b
commit
efb89df0e1
2 changed files with 5 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ public class PersonService {
|
|||
if (fids.isEmpty()) {
|
||||
return new HashMap<>();
|
||||
}
|
||||
log.trace("findPersonData: fids count: {}", fids.size());
|
||||
Map<Integer, PersonData> personDataMap = new HashMap<>();
|
||||
long start = System.currentTimeMillis();
|
||||
Map<Integer, NameData> nameDataMap = findNameData(fids);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,10 @@ public class PhoneService {
|
|||
List<String> phones = subjects.stream().map(subject -> "9" + subject.getPhone()).toList();
|
||||
log.trace("Find fids phone data in {} ms", System.currentTimeMillis() - start);
|
||||
start = System.currentTimeMillis();
|
||||
Map<String, Integer> res = convertFidsDataToMap(mapper.findFids(phones));
|
||||
List<FidsData> fidsData = mapper.findFids(phones);
|
||||
log.trace("findFids {} ms", System.currentTimeMillis() - start);
|
||||
start = System.currentTimeMillis();
|
||||
Map<String, Integer> res = convertFidsDataToMap(fidsData);
|
||||
log.trace("convertFidsDataToMap {} ms", System.currentTimeMillis() - start);
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue