Posts tagged “Vapor”

Articles

Migrate Spaces

03/14/26

How to automate PostgreSQL namespace creation using FluentKit migrations in Vapor, replacing error-prone manual setup with versioned, reversible code.

Swift Vapor
Read →

Async Concurrent Map

01/21/26

How to combine concurrent processing with chunking to balance speed and resource usage in massive asynchronous operations over collections.

Swift Vapor
Read →

Async Map Timeout

01/14/26

Extending asyncMap with an optional timeout parameter to control rate limiting between async operations and avoid 429 errors from external APIs.

Swift Vapor
Read →

Copy To

01/07/26

Export large datasets from PostgreSQL to CSV in Vapor using the native COPY TO command, avoiding manual serialization and reducing memory consumption.

Swift Vapor
Read →

Copy From

12/31/25

How to perform bulk inserts in Vapor using the PostgreSQL COPY command to import CSV files and speed up massive database insertions.

Swift Vapor
Read →

Swift Package

12/24/25

Complete guide to Swift Package Manager cleanup commands: clean, reset, purge-cache, and when to use each one to resolve dependency issues.

Swift Vapor
Read →

Subprocess

12/17/25

Migrating from Process to Subprocess, Apple's new cross-platform package for launching processes in Swift with native async/await support.

Swift Vapor
Read →

Json Snake Case

12/11/25

Conveniences to encode and decode JSON in snake_case without boilerplate, reusable in both the iOS client and the Vapor server.

Swift Vapor
Read →

Array to dictionary

12/03/25

Convert an Array of Identifiable elements (with optional ID of type UUID?) into a [UUID: Element] dictionary, ignoring null IDs and maintaining O(1) access.

Swift Vapor
Read →

Schedule Queues

11/26/25

Schedule the same ScheduledJob multiple times per hour with an expressive API: every N minutes, without repeating configuration or cron strings.

Swift Vapor
Read →