(858) 586 7777 | About | Testimonials | Contact
vteams vteams vteams vteams
  • How does it work?
    • Startup Process
    • Your First Day
  • Technologies
    • Hire PHP Developer
    • Hire App Developer
    • Hire JavaScript Developer
    • Hire ROR Developer
    • Hire IOS Developer
    • Hire .NET Developer
    • Hire AI Developer
    • Hire Robotics Engineer
  • Sample Budgets
  • Meet The Team
  • Experiments
  • Blog
vteams vteams
  • How does it work?
    • Startup Process
    • Your First Day
  • Technologies
    • Hire PHP Developer
    • Hire App Developer
    • Hire JavaScript Developer
    • Hire ROR Developer
    • Hire IOS Developer
    • Hire .NET Developer
    • Hire AI Developer
    • Hire Robotics Engineer
  • Sample Budgets
  • Meet The Team
  • Experiments
  • Blog
Blog
  1. vteams
  2. Blog
  3. Moving from Waterline to Sequelize
Jan 21
Moving-from-Waterline-to-Sequelize

Moving from Waterline to Sequelize

  • January 21, 2020

By the time we were working on project the backend structure was not in a good shape. As the project was live so we were not supposed to do drastic changes in backend structure. Previously it was using Sails Framework with Waterline ORM. Things were complicated; there were enormous raw queries that were written on the backend. Model associations was no used effectively. As the time goes and project gets bigger the API response time was getting increased. So, we thought to revamp our backend. After doing some analysis we figured out that, we should get rid from sails as it is a wrapper over express. So, why don’t use express simply? Express is core framework for backend and it provides all the features. According to the StackShare community, ExpressJS has a broader approval, being mentioned in 843 company stacks and 760 developers stacks; compared to Sails.js, which is listed in 32 company stacks and 12 developer stacks.

We decided to switch to Express core with Sequelize ORM rather than using Sails.js with Waterline ORM. Besides Sequelize framework is more popular than the Waterline. It got bigger community good support and awesome features. Here’s the analysis of Waterline vs Sequelize.

According to google trends the usage of Sequelize ORM is too much higher than the Waterline ORM because It’s the most popular ORM that is being used at the moment. Sequelize is far ahead than Waterline when it comes to performance, usage, community, developers and support .

Waterline has no built-in migration system. Tables are created automatically. There two settings though: one where the tables are created based on the model’s definitions (the tables are re-created when the models change), the second (called “safe”) where nothing is done automatically. This is the mode you want to use in production.

Sequelize  has a built-in migration system (up, down, create…). There is also a mode where tables are created automatically but it is safer than waterline’s. Tables are created only if they do not exist (you can force sequelize to re-create tables when your models change, therefore making it work like waterline).

  • Facebook
  • Twitter
  • Tumblr
  • Pinterest
  • Google+
  • LinkedIn
  • E-Mail

Comments are closed.

SEARCH BLOG

Categories

  • Blog (506)
  • Closure Reports (45)
  • Experiments (7)
  • How-To (57)
  • Implementation Notes (148)
  • Learn More (171)
  • LMS (8)
  • Look Inside (11)
  • Operations Log (12)
  • Programmer Notes (20)
  • R&D (14)
  • Rescue Log (4)
  • Testimonials (25)
  • Uncategorized (4)

RECENT STORIES

  • How to become a LAMP stack developer
  • Seven Species of Robots
  • 4 Most Popular DevOps Trends in 2021
  • Cloud Migration – The Longest Yard
  • Deep Learning vs. Machine Learning: What is the difference?

ARCHIVES

In Short

With the vteams model, you bypass the middleman and hire your own offshore engineers - they work exclusively for you. You pay a reasonable monthly wage and get the job done without hassles, re-negotiations, feature counts or budget overruns.

Goals for 2020

  • Open development center in Australia
  • Complete and Launch the Robot
  • Structural changes to better address Clients' needs

Contact Us

Address: NEXTWERK INC.
6790 Embarcadero Ln, Ste 100,
Carlsbad, CA 92011, USA

Tel: (858) 586 7777
Email: fahad@nextwerk.com
Web: www.vteams.com

© 2020 vteams. All Rights Reserved.

Content Protection by DMCA.com