# Prisma 4.6.0 — Release & Upgrade Intelligence
- **Product:** Prisma (https://prisma.io)
- **Version:** 4.6.0
- **Released:** Nov 08, 2022
- **Impact Score:** 5/10
- **Breaking Changes:** Not verified
- **Canonical Analysis:** https://changelogs.us/prisma/updates/4.6.0/

## Executive Summary (TL;DR)
Prisma 4.6.0. Source highlight: 🌟 **Help us spread the word about Prisma by starring the repo or tweeting about the release.** 🌟

## New Features
- Add duration to mongo logging
- referentialIntegrity/relationMode preview feature (`referentialIntegrity = "prisma"`): Make `NoAction` a synonym/alias of `Restrict` for the emulation, for all databases except PostgreSQL & SQLite.
- Schema: add validation for datasource property referentialIntegrity & relationMode, so only one can be set.
- **Coordinating workflows executed via a set of isolated functions or services** spreads that coordination logic across these services instead of keeping it centralized and maintainable. This adds unnecessary overhead and clutter to your business logic.

## Improvements
- All criteria of the filter must be on scalar fields (unique ***or*** non-unique) of the same model you're querying
- All criteria must use the equal's filter, whether that's via the shorthand or explicit syntax (`where: { field: <val>, field1: { equals: <val> } }`)
- **Optimizing the data access layer for scaling performance** often involves projecting data into denormalized views, or caching. These methods come with complex logic to figure out strategies for cache invalidation or preventing to use stale data.

## Upgrade Command
```bash
npm install --save-dev --save-exact prisma@4.6.0
```
