Knex.js vs MariaDB

Need advice about which tool to choose?Ask the StackShare community!

Knex.js

179
403
+ 1
49
MariaDB

16K
12.4K
+ 1
468
Add tool

Knex.js vs MariaDB: What are the differences?

  1. Query Language Differences: Knex.js is a query builder that provides a higher-level API for generating SQL queries, while MariaDB is a relational database management system that supports SQL as its query language.

  2. ORM vs. Database Management System: Knex.js is an ORM tool, meaning it focuses on mapping objects from the application to tables in a database, whereas MariaDB is a full-fledged database management system that offers features like data storage, retrieval, and management.

  3. Data Handling: Knex.js allows for easier manipulation and querying of data through its fluent API, making it more developer-friendly in terms of handling data. In contrast, MariaDB provides robust data storage and retrieval capabilities, suitable for handling large-scale data operations efficiently.

  4. Cross-Platform Support: Knex.js is a JavaScript query builder that can be used across different platforms and environments that support JavaScript, enabling developers to build applications with more flexibility. MariaDB, on the other hand, is a standalone database management system that needs to be installed on specific operating systems or servers.

  5. Scalability and Performance: Knex.js may have limitations in handling extremely large datasets and high transaction volumes due to its nature as a query builder, while MariaDB is designed for scalability and high performance, making it a preferred choice for enterprise-level applications with extensive data processing needs.

  6. Community and Ecosystem: Knex.js has a strong developer community that actively contributes plugins, extensions, and support for various databases, but it may not have the same level of industry support and adoption as MariaDB, which is backed by a well-established company and used by many large organizations worldwide.

In Summary, Knex.js and MariaDB differ in terms of query language handling, data manipulation approach, data storage capabilities, platform support, scalability, performance, and community/ecosystem involvement.

Advice on Knex.js and MariaDB
Maxim Ryakhovskiy
Needs advice
on
MariaDBMariaDBMongooseMongoose
and
PostgreSQLPostgreSQL

Hi all. I am an informatics student, and I need to realise a simple website for my friend. I am planning to realise the website using Node.js and Mongoose, since I have already done a project using these technologies. I also know SQL, and I have used PostgreSQL and MySQL previously.

The website will show a possible travel destination and local transportation. The database is used to store information about traveling, so only admin will manage the content (especially photos). While clients will see the content uploaded by the admin. I am planning to use Mongoose because it is very simple and efficient for this project. Please give me your opinion about this choice.

See more
Replies (7)

The use case you are describing would benefit from a self-hosted headless CMS like contentful. You can also go for Strapi with a database of your choice but here you would have to host Strapi and the underlying database (if not using SQLite) yourself. If you want to use Strapi, you can ease your work by using something like PlanetSCaleDB as the backing database for Strapi.

See more
Reza Malek
at Meam Software Engineering Group · | 4 upvotes · 216.5K views
Recommends
on
MongooseMongoosePostgreSQLPostgreSQL

Your requirements seem nothing special. on the other hand, MongoDB is commonly used with Node. you could use Mongo without defining a Schema, does it give you any benefits? Also, note that development speed matters. In most cases RDBMS are the best choice, Learn and use Postgres for life!

See more
Tarun Batra
Senior Software Developer at Okta · | 2 upvotes · 208.8K views
Recommends
on
MongooseMongoose

MongoDB and Mongoose are commonly used with Node.js and the use case doesn't seem to be requiring any special considerations as of now. However using MongoDB now will allow you to easily expand and modify your use case in future.

If not MongoDB, then my second choice will be PostgreSQL. It's a generic purpose database with jsonb support (if you need it) and lots of resources online. Nobody was fired for choosing PostgreSQL.

See more
Nutchanon Ninyawee

SQL is not so good at query lat long out of the box. you might need to use additional tools for that like UTM coordinates or Uber's H3.

If you use mongoDB, it support 2d coordinate query out of the box.

See more
Recommends
on
MongooseMongoose

Any database will be a great choice for your app, which is less of a technical challenge and more about great content. Go for it, the geographical search features maybe be actually handy for you.

See more
Ruslan Rayanov
Recommends

Hi, Maxim! Most likely, the site is almost ready. But we would like to share our development with you. https://falcon.web-automation.ru/ This is a constructor for web application. With it, you can create almost any site with different roles which have different levels of access to information and different functionality. The platform is managed via sql. knowing sql, you will be able to change the business logic as necessary and during further project maintenance. We will be glad to hear your feedback about the platform.

See more
Václav Hodek
CEO, lead developer at Localazy · | 1 upvotes · 209.1K views
Recommends
on
PostgreSQLPostgreSQL

Any database engine should work well but I vote for Postgres because of PostGIS extension that may be handy for travel related site. There's nothing special about your requirements.

See more
Decisions about Knex.js and MariaDB
Omran Jamal
CTO & Co-founder at Bonton Connect · | 4 upvotes · 523.7K views

We actually use both Mongo and SQL databases in production. Mongo excels in both speed and developer friendliness when it comes to geospatial data and queries on the geospatial data, but we also like ACID compliance hence most of our other data (except on-site logs) are stored in a SQL Database (MariaDB for now)

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Knex.js
Pros of MariaDB
  • 11
    Write once and then connect to almost any sql engine
  • 10
    Faster
  • 8
    Nice api, Migrations/Seeds
  • 7
    Flexibility in what engine you choose
  • 7
    Free
  • 5
    Multi support and easy to use
  • 1
    Simple query API
  • 149
    Drop-in mysql replacement
  • 100
    Great performance
  • 74
    Open source
  • 55
    Free
  • 44
    Easy setup
  • 15
    Easy and fast
  • 14
    Lead developer is "monty" widenius the founder of mysql
  • 6
    Also an aws rds service
  • 4
    Consistent and robust
  • 4
    Learning curve easy
  • 2
    Native JSON Support / Dynamic Columns
  • 1
    Real Multi Threaded queries on a table/db

Sign up to add or upvote prosMake informed product decisions

- No public GitHub repository available -

What is Knex.js?

Knex.js is a "batteries included" SQL query builder for Postgres, MySQL, MariaDB, SQLite3, and Oracle designed to be flexible, portable, and fun to use. It features both traditional node style callbacks as well as a promise interface for cleaner async flow control, a stream interface, full featured query and schema builders, transaction support (with savepoints), connection pooling and standardized responses between different query clients and dialects.

What is MariaDB?

Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry. MariaDB is designed as a drop-in replacement of MySQL(R) with more features, new storage engines, fewer bugs, and better performance.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Knex.js?
What companies use MariaDB?
See which teams inside your own company are using Knex.js or MariaDB.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Knex.js?
What tools integrate with MariaDB?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to Knex.js and MariaDB?
Sequelize
Sequelize is a promise-based ORM for Node.js and io.js. It supports the dialects PostgreSQL, MySQL, MariaDB, SQLite and MSSQL and features solid transaction support, relations, read replication and more.
Slick
It is a modern database query and access library for Scala. It allows you to work with stored data almost as if you were using Scala collections while at the same time giving you full control over when a database access happens and which data is transferred.
Spring Data
It makes it easy to use data access technologies, relational and non-relational databases, map-reduce frameworks, and cloud-based data services. This is an umbrella project which contains many subprojects that are specific to a given database.
DataGrip
A cross-platform IDE that is aimed at DBAs and developers working with SQL databases.
DBeaver
It is a free multi-platform database tool for developers, SQL programmers, database administrators and analysts. Supports all popular databases: MySQL, PostgreSQL, SQLite, Oracle, DB2, SQL Server, Sybase, Teradata, MongoDB, Cassandra, Redis, etc.
See all alternatives