---
title: "SOQL"
url: "https://blog.beyondthecloud.dev/category/soql"
---

# SOQL

Discover how to write powerful and efficient SOQL queries for Salesforce. Learn tips to optimize performance and handle complex scenarios.

- [Salesforce Mock in Apex Tests](https://blog.beyondthecloud.dev/blog/salesforce-mock-in-apex-tests.md): Executing tests takes forever? You don’t have integrations in development environments? Your tests give different results depending on the instance? No worries, check if you can benefit from Mocking or Stubbing in your tests and more! (2025-02-18)
- [Why do you need a Apex Selector Layer?](https://blog.beyondthecloud.dev/blog/why-do-you-need-selector-layer.md): A Selector Layer centralizes SOQL queries, ensuring consistency, FLS, sharing rule enforcement, and easier testing with mocking. It avoids duplication, supports caching, and simplifies updates, making your code cleaner, scalable, and more maintainable. (2025-01-16)
- [SOQL Lib](https://blog.beyondthecloud.dev/blog/soql-lib.md): The SOQL Lib provides functional constructs for SOQL queries in Apex. Use the SOQL Lib as a Selector Layer on your project. (2023-07-10)
