DEV Community

Discussion on: You Can Do it in SQL, Stop Writing Extra Code for it

Collapse
 
davidchandra95 profile image
David Andrian Chandra

How about the performance?

Collapse
 
geshan profile image
Geshan Manandhar

Doing it in SQL should perform faster. Thanks!

Collapse
 
davidchandra95 profile image
David Andrian Chandra

Welp. My company even prefer not to do an age calculation from database for the performance consideration :/

Thread Thread
 
geshan profile image
Geshan Manandhar

Probably it will be faster, profile it and show the numbers. Thanks!