Click any tag below to further narrow down your results
Links
This article examines five methods for inserting data into PostgreSQL using Python, focusing on the trade-offs between performance, safety, and convenience. It highlights when to prioritize speed and when clarity is more important, helping you select the best tool for your specific data requirements.
Prisma ORM 7.0 has launched, replacing its Rust-based query engine with a TypeScript implementation. This change results in significant performance gains, smaller bundle sizes, and improved developer experience, including faster type generation and simpler deployments. The update also moves generated artifacts out of node_modules, allowing for more efficient project workflows.
Joist, a TypeScript ORM, introduces lazy fields to improve performance by avoiding eager initialization of class fields, which can be costly in complex domain models. The article discusses various approaches to implementing lazy loading, including code generation, AST transformations, and ultimately using JavaScript prototypes to defer field initialization until accessed. This technique allows Joist to maintain ergonomic syntax while optimizing memory usage and performance.