Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. // serverless-mysql 50ms ~ 100ms
  2. // query('SELECT * FROM member limit 1').then((r) => {
  3. // console.log(r);
  4. // console.log(new Date());
  5. // });
  6.  
  7. // typeorm 1500ms ~ 2000ms
  8. // connect().then((con) => {
  9. // con.getRepository(Member).createQueryBuilder().select().getOne().then((r: any) => {
  10. // console.log(r);
  11. // console.log(new Date());
  12. // });
  13. // });
  14.  
  15. // knex 60ms ~ 120ms
  16. // knex({
  17. // client: 'mysql',
  18. // connection: {
  19. // host : '127.0.0.1',
  20. // user : 'root',
  21. // password : 'test',
  22. // database : 'test'
  23. // }
  24. // }).table('member').first().then((r) => {
  25. // console.log(r);
  26. // console.log(new Date());
  27. // });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement