Engineering note · Laravel

Apply Select Statements for Efficient Data Retrieval

By Published Updated

Laravel

Retrieve only the necessary columns from the database to reduce memory usage and speed up queries. This is particularly useful when working with large tables.

CODE SAMPLE Code snippet
$posts = Post::select('id', 'title', 'author_id')->get();

More engineering notes

Cache Blade Views for Faster Rendering

Cache rendered Blade views to store compiled templates and reduce server processing time. Laravel's...

Using --ignore-platform-req and --ignore-platform-reqs with Composer

Using --ignore-platform-req and --ignore-platform-reqs flags to bypass specific or all platform requ...