1. Home
  2. Technologies
  3. Databases

Technologies · Databases

Database technologies for data you can trust and scale.

Javixor Labs provides engineers skilled in PostgreSQL, MySQL, MongoDB, Redis, Firebase and DynamoDB. They design schemas, write fast queries, tune slow databases, plan backups and migrations and choose the right store for each kind of data. Engineers join your team or deliver a full project, with no fixed term.

6core technologies
Mid to leadexperience levels
72 business hourstypical start
No fixed termend with notice
40+Projects delivered
20+Clients served
8Countries with active clients
90%Clients who renew or extend

Interactive stack picker

Which database fits your data?

Answer four quick questions about your data and team. The picker ranks the six databases on this page and explains the top fit. Many products use two: a main database plus Redis for speed.

1. What does your data look like?
2. What is the app?
3. How will you query it?
4. What matters most?

Send my resultsOpens your email app with your answers filled in. Nothing is sent until you press send.

A starting point, not a final answer. Your team, codebase and plans matter more than any quiz, so we confirm the choice on a call.

Technologies

The databases our engineers use

Each database is built for a different shape of data and way of reading it. Here is what each one is, where it fits, where it does not, and what our engineers do with it.

Relational database

What is PostgreSQL used for?

PostgreSQL is a powerful open source relational database known for reliability, standards support and rich features. Beyond tables and SQL, it handles JSON documents, full text search, geospatial data through PostGIS and vector search through pgvector.

Because it covers so many needs well, PostgreSQL is our default recommendation for most new products. It runs everywhere, from a laptop to managed services such as Amazon RDS and Aurora, Google Cloud SQL, Azure and Supabase.

Hire backend developers →

Best for

  • Most new web and SaaS products
  • Data with relationships and strong consistency needs
  • Mixed workloads with JSON, search, maps or vectors
  • Financial and transactional systems

Think twice when

  • Simple caching or session storage, where Redis fits better
  • Massive key value workloads with very simple access patterns, where DynamoDB may be cheaper to run

What our engineers do with it

  • Design schemas, constraints and indexes for real query patterns
  • Tune slow queries with EXPLAIN and fix lock problems
  • Set up replication, backups and point in time recovery
  • Add row level security, partitioning and pgvector where they fit

Often paired with

Prisma, Django ORM, SQLAlchemy, PostGIS, pgvector, PgBouncer, Amazon RDS, Supabase

Relational database

What is MySQL used for?

MySQL is one of the most widely deployed relational databases in the world, behind many websites, WordPress installs and large web platforms. MariaDB is a close open source relative. Both are fast, well understood and available on every hosting platform.

MySQL is a strong choice for read heavy web apps, PHP and Laravel products, WordPress and teams that already know it well. Managed versions such as Amazon Aurora MySQL and PlanetScale add scaling and convenience.

Hire backend developers →

Best for

  • Web apps and PHP or Laravel projects
  • WordPress and WooCommerce
  • Read heavy workloads with replicas
  • Teams with existing MySQL expertise

Think twice when

  • Workloads that rely on advanced features PostgreSQL offers, such as rich JSON indexing or extensions

What our engineers do with it

  • Tune queries, indexes and InnoDB settings
  • Set up replicas, backups and failover
  • Upgrade older MySQL versions safely
  • Migrate between MySQL, MariaDB and PostgreSQL when needed

Often paired with

Laravel, WordPress, Amazon Aurora, PlanetScale, ProxySQL, Percona tools

Document database

What is MongoDB used for?

MongoDB stores data as flexible JSON like documents rather than rows in tables. Each record can have its own shape, which suits data that varies a lot or changes structure often, such as product catalogues, content and event data.

MongoDB Atlas, the managed cloud service, adds global clusters, full text search and vector search. Good MongoDB design still needs careful thought about how data is read, because joins and transactions work differently than in relational databases.

Hire Node.js developers →

Best for

  • Data with varied or changing structure
  • Content, catalogues and user generated data
  • Node.js teams who like working with JSON
  • Fast prototyping where the schema is still evolving

Think twice when

  • Heavily relational data with many joins
  • Financial ledgers that need strict multi record transactions everywhere

What our engineers do with it

  • Model documents around access patterns, including when to embed or reference
  • Design indexes and aggregation pipelines
  • Tune slow queries and shard large collections
  • Migrate data between MongoDB and relational databases

Often paired with

Node.js, Mongoose, MongoDB Atlas, Atlas Search, Atlas Vector Search, Express

In memory store

What is Redis used for?

Redis keeps data in memory, which makes reads and writes extremely fast. It supports strings, hashes, lists, sets, sorted sets and streams, and is used for caching, sessions, rate limits, leaderboards, queues and real time features.

Redis usually sits beside a main database rather than replacing it. Managed options include Amazon ElastiCache, Azure Cache for Redis, Redis Cloud and Valkey based services.

Hire backend developers →

Best for

  • Caching slow queries and API responses
  • Sessions and rate limiting
  • Background job queues
  • Leaderboards, counters and real time features

Think twice when

  • Being the only home for data you cannot lose, unless persistence is carefully configured

What our engineers do with it

  • Design caching with clear expiry and invalidation rules
  • Set up queues with BullMQ, Sidekiq or Celery
  • Tune memory use and eviction policies
  • Configure replication and failover for high availability

Often paired with

PostgreSQL, MySQL, BullMQ, Sidekiq, Celery, ElastiCache, Node.js, Python

App backend platform

What is Firebase used for?

Firebase is Google's platform for app backends. Cloud Firestore is a document database that syncs data to apps in real time and works offline. Firebase also provides authentication, file storage, cloud functions, messaging and analytics.

For mobile and web apps built by small teams, Firebase removes a lot of backend work. Security rules control who can read and write each document, so getting them right is essential.

Mobile app development →

Best for

  • Mobile and web MVPs built by small teams
  • Real time apps such as chat and live updates
  • Apps that need offline sync out of the box
  • Flutter and React Native projects

Think twice when

  • Complex reporting and queries across large datasets
  • Heavy relational data and strict transactional needs

What our engineers do with it

  • Design Firestore data models and security rules
  • Write Cloud Functions for server logic
  • Control read costs with smart data structure and caching
  • Export Firestore data to BigQuery for analysis

Often paired with

Flutter, React Native, Cloud Functions, Firebase Auth, BigQuery, Google Cloud

Serverless key value

What is DynamoDB used for?

Amazon DynamoDB is a fully managed key value and document database on AWS. It delivers consistent fast performance at almost any scale, with no servers to manage, and fits naturally with AWS Lambda and other serverless services.

DynamoDB rewards careful upfront design. You plan tables and keys around exact access patterns, often in a single table design. Done well, it scales smoothly. Done poorly, it becomes expensive and hard to query.

Hire AWS engineers →

Best for

  • Serverless apps on AWS
  • Very high scale with simple, known access patterns
  • Session stores, carts, device data and event logs
  • Workloads with spiky traffic

Think twice when

  • Ad hoc reporting and flexible queries
  • Teams outside AWS or with fast changing access patterns

What our engineers do with it

  • Design tables, keys and indexes around access patterns
  • Use DynamoDB Streams with Lambda for event processing
  • Control cost with on demand or provisioned capacity
  • Export data to S3 and analytics tools for reporting

Often paired with

AWS Lambda, API Gateway, DynamoDB Streams, Step Functions, S3, Athena

Side by side

Databases compared

A quick view of where each database fits. The ratings show general fit for each need, based on what our engineers see across projects.

Databases compared
TechnologyRelationshipsFlexible schemaScaleSpeedQueryingTypical use
PostgreSQLStrongGoodGoodGoodStrongMost web and SaaS apps
MySQLStrongFairGoodGoodGoodWeb apps, PHP, WordPress
MongoDBFairStrongStrongGoodGoodCatalogues and content
RedisLimitedFairGoodStrongLimitedCache, sessions, queues
FirebaseLimitedStrongGoodGoodFairReal time mobile apps
DynamoDBLimitedGoodStrongStrongFairServerless at scale
Strong a natural fitGood works wellFair possible with effortLimited usually not the right toolClick a column heading to highlight it.

These are our engineers' general judgements from project work, not benchmark results. Your own constraints can change the answer.

Reference architecture

How data flows through a product

Most products we work on use more than one store, each for a clear job. These layers show where each database usually sits.

Application
  • APIs
  • Services
  • Workers

Reads and writes data through repositories and ORMs, never with ad hoc SQL scattered around.

Cache
  • Redis
  • CDN
  • In memory

Serves hot data fast and protects the main database from repeated reads.

Primary database
  • PostgreSQL
  • MySQL
  • MongoDB
  • DynamoDB

The source of truth for business data, with backups and constraints.

Search and vectors
  • pgvector
  • Atlas Search
  • OpenSearch

Full text and semantic search, kept in sync with the primary data.

Events and streams
  • Change data capture
  • Kafka
  • DynamoDB Streams

Publishes changes so other systems can react without polling.

Analytics
  • BigQuery
  • Snowflake
  • Redshift

Copies of data shaped for reports, so heavy queries do not slow the app.

Protection
  • Backups
  • Replicas
  • Encryption
  • Access control

Keeps data safe, recoverable and visible only to the right people.

What we build

What our database engineers do

Database work ranges from a first schema to rescuing a system under strain. These are the kinds of projects our engineers take on.

Schema design for new products

Data models, constraints and indexes designed around how the product will really be used, so features stay simple to build.

Performance tuning

Finding slow queries, missing indexes and lock problems, then fixing them so pages and APIs respond quickly again.

Migrations between databases

Moving from MySQL to PostgreSQL, MongoDB to relational, or on premises to cloud, with sync and verification. See cloud migration.

High availability and recovery

Replication, failover, backups and tested restores so outages and mistakes do not become disasters.

Search and AI data

Full text search, vector search with pgvector or Atlas and data pipelines for AI features. See RAG development.

Reporting and analytics feeds

Moving data into warehouses for reports without slowing the live app. See data warehousing.

How we vet engineers

How we check database engineers before you meet them

Every engineer passes technical and communication screens for their stack before you see a profile. Then you interview them yourself. Here is what we look at for database work.

  1. Data modellingDesigning a schema or document model for a realistic feature, including constraints and edge cases.
  2. Query skillsWriting and improving queries, reading query plans and choosing the right indexes.
  3. OperationsBackups, replication, failover, upgrades and safe migrations on live systems.
  4. SecurityAccess control, encryption, secrets handling and protecting personal data.
  5. CommunicationA spoken and written check in English, including explaining a tradeoff to a non technical person.
  6. Your interviewYou meet every engineer and decide. If the fit is not right later, a replacement shortlist arrives within 48 hours.

Ways to work

Three ways to work with our database engineers

Every option comes with the same terms: an NDA before you share details, code and IP owned by you by contract, and a written estimate before anything starts. Ballpark: $18 to $34 an hour per engineer, about $2,900 to $5,400 a month full time. Every scope is priced on its own.

Add engineers to your team

Databases engineers join your standups, your tools and your repositories, and take direction from your leads. There is no fixed term. They stay as long as you need them, and you end it by giving notice.

Most engineers start within 72 business hours of a confirmed brief, after you interview them.

IT staff augmentation →

Build a dedicated team

A small team shaped around your roadmap, with the right mix of database, backend and DevOps skills and a named delivery lead who runs monthly check ins with you.

You keep control of priorities. We keep the team staffed and steady.

Hire dedicated teams →

Hand us a project

For a defined outcome, we scope the work, agree milestones in writing and deliver it end to end, then hand over code, documents and access.

Agencies can also take this route under their own brand.

White label delivery →

The complete guide

Choosing and running databases: a practical guide.

A plain English guide for founders, product owners and engineering leads. How relational, document, key value and in memory databases differ, how to model data, write fast queries, scale, back up and secure a database, how to migrate between systems, and how to hire engineers who keep data safe.

Chapter 01

What does database engineering include?

Short answer

Database engineering covers choosing the right data stores, designing schemas, writing and tuning queries, planning indexes, running backups and replication, migrating data safely and securing access. It keeps data correct, fast and recoverable.

Code can be rewritten. Data usually cannot. That is why database decisions deserve care: a good schema makes features easy for years, while a poor one slows every change.

  • Choosing stores: matching each kind of data to the right database.
  • Modelling: tables, documents, keys and relationships that reflect the business.
  • Queries and indexes: fast reads and writes for real usage patterns.
  • Operations: backups, replicas, failover, upgrades and monitoring.
  • Migrations: changing schemas and moving data without downtime or loss.
  • Security: encryption, access control, auditing and privacy.

In many teams, backend engineers handle most of this. As data grows, specialist skills in tuning, scaling and recovery become more valuable.

Chapter 02

What are the main types of databases?

Short answer

The main types are relational databases such as PostgreSQL and MySQL, document databases such as MongoDB and Firestore, key value stores such as DynamoDB and Redis, and specialist stores for search, time series, graphs, vectors and analytics.

TypeExamplesGood for
RelationalPostgreSQL, MySQL, SQL ServerStructured data with relationships and transactions
DocumentMongoDB, Firestore, CouchbaseVaried or nested data read as whole records
Key valueDynamoDB, RedisFast lookups by key at large scale
In memoryRedis, MemcachedCaching, sessions, counters
SearchOpenSearch, Elasticsearch, TypesenseFull text search and filtering
Time seriesTimescaleDB, InfluxDBMetrics, sensor and IoT data
GraphNeo4j, NeptuneHighly connected data like networks
Vectorpgvector, Pinecone, QdrantSemantic search and AI retrieval
AnalyticalBigQuery, Snowflake, RedshiftReports across huge datasets

Most products need a primary database plus one or two specialists. Adding too many stores early creates sync problems and operations work, so add them when a real need appears.

Chapter 03

How do you choose the right database?

Short answer

Start from your data shape, access patterns, consistency needs, scale, team skills and cloud. For most new products, PostgreSQL is the safest default. Add Redis for speed, and specialist stores only when a clear need appears.

  • Data shape: related records point to relational. Varied nested records point to document stores.
  • Access patterns: flexible queries and reports favour SQL. Known, simple lookups at scale favour key value.
  • Consistency: money, inventory and bookings need strong transactions.
  • Scale: most products never outgrow a well tuned PostgreSQL or MySQL. Very high write volumes may need DynamoDB, sharding or distributed SQL.
  • Team: existing skills reduce risk and speed delivery.
  • Cloud and budget: managed services save operations work but vary in cost.

Avoid choosing a database because a large tech company uses it. Their scale and teams are rarely yours. Try the picker above with your own answers.

Chapter 04

Should you use SQL or NoSQL?

Short answer

Use SQL by default for business data with relationships and transactions. Use NoSQL when data is naturally document shaped, access patterns are simple and known, or you need serverless scale with little operations work. Many systems use both.

The SQL versus NoSQL debate is less sharp than it once was. PostgreSQL handles JSON documents well, and MongoDB now supports multi document transactions. The real differences are in how you model and query.

  • SQL strengths: joins, constraints, transactions, flexible queries and decades of tooling.
  • NoSQL strengths: flexible schemas, natural fit for nested data, easy horizontal scaling for some workloads.
  • SQL tradeoffs: schema changes need migrations, and very large scale needs planning.
  • NoSQL tradeoffs: you design around access patterns upfront, and reporting often needs data copied elsewhere.

A common pattern is PostgreSQL as the source of truth, Redis for cache and sessions, and a document or key value store for a specific high volume feature.

Chapter 05

How do you design a good database schema?

Short answer

Model the real business entities and their relationships, normalise to avoid duplication, then denormalise deliberately where reads demand it. Use constraints, clear names and migrations, and design indexes around the queries the app will actually run.

  • Start from the domain: customers, orders, products and how they relate, in the business's own words.
  • Normalise first: store each fact once to avoid inconsistent copies.
  • Denormalise on purpose: add summary columns or tables where reads are frequent and joins costly.
  • Constraints: primary keys, foreign keys, unique and check constraints catch bugs at the source.
  • Types: correct types for money, dates and time zones prevent subtle errors. Store money as integers or exact decimals, never floats.
  • Naming: consistent, readable names that new engineers understand.

For document databases, the key question is what to embed and what to reference. Embed data that is read together and owned by the parent. Reference data that is shared, large or changes independently.

Chapter 06

How do database indexes work and when should you add them?

Short answer

An index is a sorted structure that lets the database find rows without scanning the whole table. Add indexes for columns used in filters, joins and sorting in frequent queries. Too many indexes slow writes, so base them on real query patterns.

Without an index, finding one customer among millions means reading every row. With the right index, it takes a few steps.

  • B tree indexes: the default, good for equality and range filters.
  • Composite indexes: cover several columns. Column order matters.
  • Partial indexes: index only rows that match a condition, such as active records.
  • GIN and full text: for JSON, arrays and text search in PostgreSQL.
  • Covering indexes: include extra columns so queries never touch the table.

Check query plans with EXPLAIN, watch slow query logs and remove unused indexes. In DynamoDB and MongoDB, secondary indexes play the same role but must be designed around access patterns from the start.

Chapter 07

Why are database queries slow and how do you fix them?

Short answer

Slow queries usually come from missing indexes, scanning too much data, N plus one patterns from ORMs, returning unneeded columns, lock contention or poor statistics. Find them with slow query logs and query plans, then fix the biggest offenders first.

  • Missing or wrong indexes: the most common cause.
  • N plus one queries: an ORM fetching related records one by one instead of in one query.
  • Selecting everything: loading wide rows when a few columns are needed.
  • Large offsets: deep pagination with OFFSET gets slower page by page. Keyset pagination fixes it.
  • Functions on indexed columns: wrapping a column in a function can stop the index being used.
  • Locks: long transactions blocking others.
  • Stale statistics: the planner choosing poor plans until statistics are updated.

Tools such as pg_stat_statements, MySQL's Performance Schema, MongoDB's profiler and cloud insights dashboards show which queries consume the most time. Fixing the top handful often transforms performance.

Chapter 08

Should you use an ORM or write SQL?

Short answer

Use an ORM for everyday reads and writes because it speeds development and reduces mistakes. Drop to SQL for complex reports, bulk operations and performance critical paths. Engineers must understand the SQL their ORM produces either way.

ORMs such as Prisma, TypeORM, Drizzle, Django ORM, SQLAlchemy, Hibernate, Entity Framework and Eloquent map tables to objects. They handle common work, migrations and safety against SQL injection.

  • ORM strengths: faster development, type safety, readable code and migrations.
  • ORM risks: hidden extra queries, inefficient joins and lazy loading surprises.
  • SQL strengths: full control for reports, window functions, bulk updates and tuned queries.

The healthy approach is both: ORM by default, SQL where it is clearer or faster, and query logging in development so engineers see what actually runs.

Chapter 09

Why do transactions and consistency matter?

Short answer

Transactions make a group of changes succeed or fail together, so data never ends up half updated. They matter for money, stock, bookings and anything where two users might change the same thing at once.

Imagine moving money between accounts. If the debit succeeds and the credit fails, money disappears. A transaction guarantees both happen or neither does.

  • ACID: atomicity, consistency, isolation and durability, the guarantees relational databases provide.
  • Isolation levels: control how concurrent transactions see each other's changes. Stronger levels prevent more anomalies but can reduce throughput.
  • Locking: pessimistic locks block others, optimistic checks detect conflicts at save time.
  • Eventual consistency: some distributed stores show the latest data after a short delay, which is fine for feeds but not for balances.

Design critical flows, such as checkout and payments, with transactions and idempotency so retries never double charge or oversell.

Chapter 10

How do you scale a database as the product grows?

Short answer

Scale in steps: tune queries and indexes, add caching, use connection pooling, add read replicas, partition large tables, and only then consider sharding or distributed databases. Managed services make many of these steps easier.

  1. Tune first: queries, indexes and settings fix most growth pains.
  2. Cache: Redis or application caches for hot reads.
  3. Pool connections: PgBouncer or RDS Proxy stop apps exhausting connections.
  4. Read replicas: send reports and read heavy traffic to copies.
  5. Bigger instances: vertical scaling is simple and often enough for a long time.
  6. Partitioning: split huge tables by date or tenant inside one database.
  7. Sharding: split data across databases. Powerful but complex.
  8. Distributed SQL: Aurora, Spanner, CockroachDB or Citus for very large or global workloads.

Each step adds complexity, so take the next one only when measurements show the current one is not enough.

Chapter 11

How do you keep a database available when things fail?

Short answer

Run a primary with standby replicas in other zones, enable automatic failover, test it, and make the application reconnect gracefully. Managed services such as RDS Multi AZ and Atlas handle much of this, but failover still needs testing.

  • Replicas in separate zones: so one data centre failure does not take you down.
  • Automatic failover: a standby promoted to primary when the primary fails.
  • Application retries: connection logic that survives a brief switch.
  • Monitoring: replication lag, disk space, connections and error rates with alerts.
  • Regular drills: practise failover so surprises happen in tests, not incidents.

Decide your targets in plain terms: how long can the system be down, and how much recent data could you afford to lose? Those answers, known as RTO and RPO, shape the design and the cost.

Chapter 12

How should databases be backed up?

Short answer

Take automated backups with point in time recovery, keep copies in a separate account or region, encrypt them and, most importantly, test restores regularly. A backup that has never been restored is a hope, not a plan.

  • Automated snapshots: daily or more often, kept for an agreed period.
  • Point in time recovery: restore to any moment, which saves you from accidental deletes.
  • Off site copies: backups in another region or account protect against account compromise and ransomware.
  • Encryption: backups hold the same sensitive data as production.
  • Restore tests: scheduled restores into a test environment, timed and documented.

Many teams discover backup gaps only during an incident. A short recovery runbook and a quarterly restore test remove most of that risk.

Chapter 13

How do you change a database schema without downtime?

Short answer

Use versioned migrations and the expand and contract pattern: add new columns or tables first, deploy code that writes to both, backfill data, switch reads, then remove the old structure later. Avoid long locks on large tables.

  1. Expand: add the new column or table without removing anything.
  2. Dual write: deploy code that writes to old and new structures.
  3. Backfill: copy existing data in small batches.
  4. Switch reads: move the app to read from the new structure.
  5. Contract: remove the old structure once nothing uses it.

Tools such as Flyway, Liquibase, Prisma Migrate, Alembic, Django migrations and Laravel migrations version changes. For large MySQL tables, online schema change tools avoid long locks. Always test migrations on a copy of production sized data first.

Chapter 14

How do you migrate from one database to another?

Short answer

Plan the target schema, copy historical data, keep the two in sync with change data capture while the app moves over, verify counts and checksums, then switch with a rollback plan ready. Cloud tools such as AWS DMS help with the heavy lifting.

Common moves include MySQL to PostgreSQL, MongoDB to PostgreSQL, SQL Server to PostgreSQL to cut licence costs, and on premises databases to managed cloud services.

  1. Assess: schema differences, data types, stored procedures and features the app relies on.
  2. Design the target: a clean model, not a blind copy of old problems.
  3. Initial load: bulk copy historical data.
  4. Sync changes: change data capture with tools such as Debezium or AWS DMS.
  5. Verify: row counts, checksums and application level comparisons.
  6. Cut over: switch with a short freeze if needed and a tested rollback.

See cloud migration and legacy modernization.

Chapter 15

How do you secure a database?

Short answer

Keep databases off the public internet, give each app and person the least access they need, encrypt data in transit and at rest, manage credentials in a secrets manager, audit access to sensitive data and patch regularly.

  • Network: private subnets and security groups. No public database endpoints.
  • Least privilege: separate users for each app and role. The app should not connect as an admin.
  • Encryption: TLS for connections and encryption at rest for data, replicas and backups.
  • Secrets: credentials in AWS Secrets Manager, Azure Key Vault or similar, rotated regularly.
  • Injection protection: parameterised queries and ORMs, never string built SQL.
  • Auditing: logs of who accessed or changed sensitive records.
  • Data minimisation: do not store what you do not need, and mask data in test environments.

Firebase and Supabase rely on security rules or row level security for client access. These rules are the security boundary, so they need the same review and testing as backend code.

Chapter 16

How should SaaS products separate customer data?

Short answer

Choose shared tables with a tenant ID, a schema per tenant or a database per tenant, based on isolation needs, scale and cost. Enforce tenant scoping centrally, for example with PostgreSQL row level security, and test it constantly.

  • Shared tables: one set of tables with a tenant_id column. Cheapest and simplest, but every query must be scoped.
  • Schema per tenant: stronger separation in one database, with more complex migrations.
  • Database per tenant: strongest isolation and easy per customer backups or residency, at higher cost.

Row level security in PostgreSQL can enforce tenant scoping inside the database itself, adding a safety net if application code misses a filter. Index tenant columns and watch for very large tenants that may need their own resources.

Chapter 18

What are vector databases and do you need one?

Short answer

Vector databases store embeddings, numeric representations of meaning, and find similar items fast. They power semantic search, recommendations and retrieval for AI assistants. pgvector in PostgreSQL is often enough; dedicated stores help at larger scale.

AI models can turn text, images and other content into vectors. Items with similar meaning end up close together, so a vector search finds relevant content even when words differ.

  • pgvector: vectors inside PostgreSQL, alongside your other data and permissions. A strong default.
  • MongoDB Atlas Vector Search: for teams already on Atlas.
  • Dedicated stores: Pinecone, Qdrant, Weaviate and Milvus for very large collections or advanced features.
  • Hybrid search: combining keyword and vector results usually beats either alone.

Keeping vectors in the same database as your data makes permissions and freshness simpler. See RAG development and our AI and ML technologies.

Chapter 19

How should you store time series and IoT data?

Short answer

Use a time series database such as TimescaleDB or InfluxDB, or partitioned tables, for metrics and sensor readings. Plan retention, downsampling and compression from the start, because this data grows quickly.

  • TimescaleDB: PostgreSQL with automatic time partitioning, compression and continuous aggregates.
  • InfluxDB: a dedicated time series database for metrics.
  • Cloud options: Amazon Timestream and others for managed setups.
  • Retention: keep raw readings for a short period and summaries for longer.
  • Ingestion: buffer bursts through MQTT brokers or streams before writing.

Device and machine data is common in manufacturing and connected products. See our embedded and IoT technologies.

Chapter 20

Why separate operational and analytical databases?

Short answer

Operational databases serve the live app with fast small reads and writes. Analytical warehouses such as BigQuery, Snowflake and Redshift handle large reports. Running heavy reports on the live database slows the app, so data is copied to a warehouse for analysis.

An online store needs to save an order in milliseconds. The finance team wants revenue by region across three years. Those are very different workloads.

  • OLTP: online transaction processing, the live app database.
  • OLAP: online analytical processing, the reporting warehouse.
  • Pipelines: ELT tools and change data capture copy data from one to the other.
  • Read replicas: a stepping stone for light reporting before a warehouse is needed.

See data warehousing, data engineering and our data technologies.

Chapter 21

Should you use a managed database service?

Short answer

For most teams, yes. Managed services such as Amazon RDS and Aurora, Google Cloud SQL, Azure Database, MongoDB Atlas and Supabase handle patching, backups, replicas and failover. Self hosting can save money at scale or meet special requirements, but needs real expertise.

ManagedSelf hosted
Setup and patchingHandled by the providerYour team
Backups and failoverBuilt in, needs configuring and testingBuild and test yourself
ControlSome settings and extensions limitedFull control
CostHigher per unit, lower people costLower per unit, higher people cost

Self hosting on Kubernetes or virtual machines makes sense for strict data residency, unusual extensions or very large steady workloads where the savings justify a skilled operations team.

Chapter 22

How do you control database costs?

Short answer

Right size instances, remove unused indexes and data, archive old records, use reserved or savings plans for steady workloads, choose the right capacity mode for DynamoDB, control Firestore reads with good data design and watch storage and backup growth.

  • Right sizing: match instance size to real load, checked every few months.
  • Reserved capacity: commit to steady workloads for lower prices.
  • Archiving: move old data to cheaper storage such as S3.
  • DynamoDB modes: on demand for spiky traffic, provisioned with autoscaling for steady traffic.
  • Firestore reads: design documents and listeners to avoid paying for repeated reads.
  • Replicas: remove unused ones and avoid oversizing.

Query tuning often reduces cost as much as it improves speed, because efficient queries need smaller instances.

Chapter 23

What should you monitor in a database?

Short answer

Watch CPU, memory, disk space and input and output, connections, slow queries, replication lag, lock waits, cache hit rates and backup success. Alert on trends that predict trouble, such as disk filling up, not just on outages.

  • Capacity: CPU, memory, storage and IOPS.
  • Connections: active and waiting connections, pool saturation.
  • Query health: slow query counts and top queries by total time.
  • Replication: lag between primary and replicas.
  • Locks: blocked queries and deadlocks.
  • Backups: success, duration and restore test results.

Cloud tools such as RDS Performance Insights, Cloud SQL Insights and Atlas monitoring cover much of this, with Datadog or Grafana for a combined view. See DevOps services.

Chapter 24

What should you look for when hiring database engineers?

Short answer

Look for strong data modelling, fluent SQL or query languages, the ability to read query plans, experience with backups, replication and safe migrations, security awareness and calm judgement under pressure during incidents.

  • Designing schemas that reflect the business and stay flexible.
  • Writing and tuning queries, and explaining why a plan is slow.
  • Running migrations on live systems without downtime.
  • Setting up and testing backups and failover.
  • Understanding access control, encryption and privacy rules.
  • Explaining data tradeoffs clearly to product and business teams.
LevelWhat they own
Mid levelSchemas, queries and migrations for features within agreed standards
SeniorData models, performance, replication, recovery planning and reviews
LeadData architecture across systems, standards, scaling strategy and governance

Javixor Labs provides mid level, senior and lead engineers with database depth. See hire backend developers and hire data engineers.

Chapter 25

How do you work safely with remote database engineers?

Short answer

Grant least privilege access through your own identity tools, use bastion hosts or secure tunnels, log all production access, keep changes in reviewed migrations and agree overlap hours for planned work and incidents.

  • Access: individual accounts through your SSO, never shared credentials.
  • Production safety: read only by default, with time limited elevated access when needed.
  • Change control: every schema change as a reviewed migration in your repository.
  • Data masking: masked or synthetic data in development and test environments.
  • Overlap hours: agreed windows for maintenance and incident response. We agree overlap with US, UK, European, Gulf and Australian teams.

Our engineers sign NDAs and work within your security policies. Every account has a named delivery lead who runs monthly check ins.

Chapter 26

What drives the cost of database work?

Short answer

Cost depends on data volume and complexity, the number of systems involved, uptime and recovery targets, compliance needs, how messy existing data is and whether work is a one off fix or ongoing operations.

Ballpark: $18 to $34 an hour per engineer, about $2,900 to $5,400 a month full time. These are ballpark figures. Your final cost is confirmed after the proposal discussion. The final price depends on scope. These factors move it most:

  • Volume and complexity: more tables, documents and relationships mean more design and testing.
  • Migrations: moving between databases needs sync, verification and rollback planning.
  • Availability targets: strict uptime and recovery goals need more design and infrastructure.
  • Compliance: health, finance and personal data add security and audit work.
  • Data quality: cleaning inconsistent historical data takes time.
  • Ongoing care: monitoring, tuning and on call coverage.

You get a written estimate before anything starts. For staff augmentation, you pay for the engineers you choose for as long as you need them, with no fixed term.

Chapter 27

What database mistakes cost the most?

Short answer

The costliest mistakes are untested backups, public database endpoints, storing money as floats, no indexes or too many, running reports on the live database, risky migrations, shared admin credentials and choosing NoSQL for relational data.

  • Untested backups: discovering during an incident that restores do not work.
  • Public endpoints: databases reachable from the internet.
  • Floats for money: rounding errors in financial data.
  • Index neglect: missing indexes slow reads, excess indexes slow writes.
  • Reports on production: heavy queries slowing the live app.
  • Locking migrations: schema changes that freeze large tables.
  • Shared admin logins: no audit trail and wide blast radius.
  • Wrong model: relational data forced into a document store, or the reverse.

A short review of an existing database by an experienced engineer usually finds the few changes that matter most.

Chapter 28

How do you get started with Javixor Labs on database work?

Short answer

Tell us about your data, workload, problems and team. A delivery lead replies within one working day. After an NDA, you get engineer profiles to interview or a written plan and estimate for a project. Most engineers start within 72 business hours of a confirmed brief.

  1. Share the brief: your databases, data size, pain points and the help you need.
  2. NDA: we sign yours or send ours before you share details.
  3. Profiles or plan: engineer profiles for staff augmentation, or a written scope and estimate for a project such as tuning or migration.
  4. Interviews: you meet every engineer and choose.
  5. Start: engineers join with least privilege access, usually within 72 business hours of a confirmed brief.
  6. Review: your delivery lead checks in monthly. No fixed term. End with notice.

Not sure which database fits? Use the picker at the top of this page and send us your results, or contact us directly.

Glossary

Databases terms, in plain English.

The words you will hear when planning database work, explained simply. Type to filter.

Database
An organised system for storing, finding and updating data.
Relational database
A database that stores data in tables linked by keys and queried with SQL.
SQL
Structured Query Language, used to read and change data in relational databases.
NoSQL
A broad term for databases that do not use the relational table model, such as document or key value stores.
Document database
A database that stores records as flexible JSON like documents.
Key value store
A database that stores and finds values by a unique key.
Schema
The structure of a database: its tables, columns, types and rules.
Primary key
A column or set of columns that uniquely identifies each row.
Foreign key
A column that links a row to a row in another table.
Constraint
A rule the database enforces, such as uniqueness or required values.
Normalisation
Organising data so each fact is stored once.
Denormalisation
Deliberately duplicating some data to make reads faster.
Index
A structure that helps the database find rows quickly without scanning everything.
Query plan
The steps a database chooses to run a query, shown by EXPLAIN.
N plus one query
A pattern where code runs one query per item instead of one query for all items.
ORM
Object relational mapper: a library that maps tables to code objects.
Transaction
A group of changes that succeed or fail together.
ACID
Atomicity, consistency, isolation and durability: guarantees for reliable transactions.
Isolation level
How much concurrent transactions can see of each other's changes.
Eventual consistency
A model where all copies of data become consistent after a short delay.
Replica
A copy of a database kept in sync with the primary.
Failover
Switching to a standby database when the primary fails.
Point in time recovery
Restoring a database to any moment within a retention period.
RPO
Recovery point objective: how much recent data you could afford to lose.
RTO
Recovery time objective: how long the system can be down during recovery.
Sharding
Splitting data across several databases to spread load.
Partitioning
Splitting a large table into smaller parts inside one database.
Connection pooling
Reusing a set of database connections across many requests.
Migration
A versioned, scripted change to a database schema.
Expand and contract
A safe way to change schemas by adding new structures before removing old ones.
Change data capture
Reading a database's change log to stream changes to other systems.
Row level security
Database rules that limit which rows each user or tenant can see.
Embedding
A list of numbers that represents the meaning of text, images or other content.
Vector search
Finding items whose embeddings are closest in meaning to a query.
pgvector
A PostgreSQL extension for storing and searching vectors.
Time series data
Measurements recorded over time, such as metrics or sensor readings.
OLTP
Online transaction processing: the fast reads and writes of a live application.
OLAP
Online analytical processing: large queries for reports and analysis.
Managed database
A database service where the cloud provider runs patching, backups and failover.
Security rules
Firebase rules that decide who can read and write each document.
Keyset pagination
Paging through results using the last seen value instead of an offset, which stays fast on deep pages.
Read replica
A copy of a database used to serve read queries and reports so the primary handles fewer requests.

Questions

Databases questions, answered.

What databases does Javixor Labs work with?

Our engineers work with PostgreSQL, MySQL and MariaDB, MongoDB, Redis, Firebase and Firestore, and DynamoDB, plus search and vector tools such as OpenSearch and pgvector, and warehouses such as BigQuery and Snowflake.

Which database is best for a new product?

For most new products, PostgreSQL is the safest default. It handles relational data, JSON, search and vectors well and runs on every cloud. Add Redis for caching and specialist stores only when a clear need appears.

Should we use PostgreSQL or MySQL?

Both are excellent. PostgreSQL offers richer features such as advanced JSON, extensions and stronger standards support. MySQL is simple, widely hosted and a natural fit for PHP, Laravel and WordPress. Team experience often decides it.

When does MongoDB make sense?

When your data varies in shape or is naturally nested, such as content, catalogues or event data, and you read whole records together. For heavily relational data with many joins, a relational database is usually better.

Is Firebase a real database for production?

Yes. Firestore runs many production apps, especially mobile apps with real time and offline needs. It is less suited to complex reporting and relational data, and costs need watching as reads grow.

When should we use DynamoDB?

For serverless apps on AWS with known, simple access patterns that need consistent speed at large scale. It needs careful upfront design and is not suited to flexible reporting.

What is Redis used for?

Caching, sessions, rate limits, queues, leaderboards and real time features. It usually sits beside a main database rather than replacing it.

Do we need more than one database?

Many products use two or three: a primary database such as PostgreSQL, Redis for caching and sessions, and sometimes a search engine or warehouse. Each extra store adds sync and operations work, so we add them only when a clear need appears.

Should we use a managed database service?

For most teams, yes. Managed services handle patching, backups and failover so engineers can focus on the product. Self hosting can make sense for strict residency rules or very large steady workloads with a skilled operations team.

Can you store time series or IoT data?

Yes. We use TimescaleDB, InfluxDB or partitioned tables with retention and downsampling plans, so sensor and metrics data stays fast and affordable as it grows.

Our database is slow. Can you fix it?

Yes. We review slow query logs and query plans, fix missing indexes, inefficient queries and ORM patterns, tune settings and connection pooling, then add caching or replicas where needed.

Can you migrate us from MySQL or SQL Server to PostgreSQL?

Yes. We assess differences, design the target schema, copy and sync data with change data capture, verify it and cut over with a tested rollback plan.

Can you move our database to the cloud?

Yes. We plan and run migrations to managed services such as Amazon RDS and Aurora, Google Cloud SQL, Azure Database and MongoDB Atlas, with minimal downtime. See cloud migration.

How do you make sure we never lose data?

With automated backups, point in time recovery, copies in a separate region or account, replicas with failover and, most importantly, regular tested restores.

Can you change our schema without downtime?

Yes. We use versioned migrations and the expand and contract pattern, backfilling data in batches so the app keeps running throughout.

Can you add search or AI features to our data?

Yes. We add full text search, vector search with pgvector or dedicated stores, and retrieval pipelines for AI assistants. See RAG development.

How do you secure our databases?

Private networks, least privilege accounts, encryption in transit and at rest, secrets managers, parameterised queries, audit logs and masked data outside production.

Do you design multi tenant SaaS databases?

Yes. We choose the right isolation model, enforce tenant scoping centrally, often with row level security, and test isolation thoroughly.

Can you reduce our database costs?

Often, yes. Query tuning, right sizing, archiving old data, reserved capacity and better data design for Firestore or DynamoDB can cut costs significantly.

How quickly can a database engineer start?

Most engineers start within 72 business hours of a confirmed brief, after you have interviewed them.

Is there a minimum contract length?

No. Staff augmentation has no fixed term. Engineers stay as long as you need them, and you end the arrangement by giving notice.

How much does database work cost?

Ballpark: $18 to $34 an hour per engineer, about $2,900 to $5,400 a month full time. The price depends on the role, seniority, hours and scope. You receive a written estimate before anything starts. Billing is in USD, hourly or as a monthly retainer per engineer. These are ballpark figures. Your final cost is confirmed after the proposal discussion. Try the cost calculator.

Who owns our data and code?

You do. Your data stays yours, and code and intellectual property are assigned to you by contract from day one.

How do remote engineers access our databases safely?

Through individual accounts via your SSO, least privilege by default, time limited elevated access, secure tunnels and logged production access, all under your policies.

Can you work as a white label partner for our agency?

Yes. Our engineers can work under your agency brand, using your email, tools and titles, while you keep the client relationship.

Do you sign an NDA?

Yes. We sign your NDA or send ours before you share any details about your systems or data.

What if the engineer is not the right fit?

Tell your delivery lead. A replacement shortlist arrives within 48 hours, and the handover is planned so work keeps moving.

Put your data on solid ground.

Tell us about your data, workload and team. A delivery lead replies within one working day.

Or email sales@javixorlabs.com
Request a matchDevelopers