Lawrence Cooke

Lawrence Cooke @mrpercival

About: I am a person.

Location:
Tennessee, USA
Joined:
Mar 7, 2023

Lawrence Cooke
articles - 16 total

Using TF-IDF Vectors With PHP & PostgreSQL

Vectors in PostgreSQL are used to compare data to find similarities, outliers, groupings,...

Learn More 2 0Mar 27

How To Use Materialized Views

There are times when a query takes a long time to run. While indexes and good query design often...

Learn More 1 0Dec 23 '24

Optimizing SQL Queries

When writing queries, we should always take time to find the best way to write the query. Sometimes...

Learn More 2 0Oct 13 '24

Slim and Flight PHP Framework Comparison

Why use a micro framework? On social media, often new PHP devs ask "What framework should...

Learn More 16 8Sep 14 '24

Web Developer Burnout

A Little Background Back when I started my web developer journey, everything was much...

Learn More 0 0Aug 15 '24

Creating Custom Functions In PostgreSQL

In PostgreSQL, custom functions can be created to solve complex problems. These can be written using...

Learn More 3 2Jul 25 '24

Migrating from MySQL to PostgreSQL

Migrating a database from MySQL to Postgres is a challenging process. While MySQL and Postgres do a...

Learn More 14 1Jul 11 '24

Postgres Arrays

What are Postgres arrays? Arrays are columns that can hold multiple values. They are...

Learn More 2 0Jun 21 '24

Updating legacy code to php 8.x

When you have really old code, while it might work on php 7.4, getting it ready for php 8 is a...

Learn More 3 1Apr 30 '24

Improving the performance of LIMIT,OFFSET in MySQL

When using medium or large datasets, the use of LIMIT can be a performance bottle neck. The reason...

Learn More 1 1Mar 17 '24

SQL Database Index Basics

If you are just starting out on your SQL database journey, you may be wondering what indexes are and...

Learn More 5 6Jan 4 '24

Finding the best SQL query for the task.

Each time we write a SQL query, we are faced with having to find a solution that solves a specific...

Learn More 0 0Dec 29 '23

SQL Common Table Expressions and Window functions

Sometimes when writing queries for reporting purposes, the queries required to manipulate the data...

Learn More 21 1Jul 30 '23

Using MySQL Variables

MySQL variables are a handy way to store data from a row, so that it can be used in calculations with...

Learn More 2 0Jul 14 '23

Using HTMX To Solve Server Side Issues

Recently I came across an issue where users were getting error 500s on a page that was a list of...

Learn More 5 1Apr 27 '23

Dependency Injection with Fat Free Framework

What is Fat Free Framework? Fat Free Framework is an easy to set up, lightweight framework...

Learn More 4 2Mar 7 '23