database



Maximizing MySQL performance with indexes

  • avatar
  • 511 Views
  • 2 Likes
  • 6 mins read
Preview post image

Indexes are one of the tools MySQL uses to make data access faster. Without them, the database engine has to scan every row in a table to find matching records. This kind of full scan can be slow, especially when dealing with large datasets. Indexes allow MySQL to skip most of the table and go straight to the rows it needs. They're not just about speed, though. Indexes also help with enforcing uniqueness, sorting results, and supporting specific types of queries. But they come with trade-offs, like extra storage use and slower write operations.

Allow remote access to MySQL server

  • avatar
  • 1.7K Views
  • 1 Like
  • 6 mins read
Preview post image

Many applications start their web server and database hosted on the same machine. It's simpler, cheaper and easier to manage. However, as our application grows , a setup like this can bring security issues and scalability problems. A common solution is to separate our database from the application: creating a dedicated database server and allowing applications to connect remotely. This setup is more secure, it can provide you a better analysis of the bottlenecks and definitely makes the scalability easier.

Tag-based cache inside Laravel repositories

Available to Premium members only
  • avatar
  • 110 Views
  • 12 mins read
Preview post image

Working with cache can drastically improve the performance of an application, especially when dealing with data that doesn't change too often. While Laravel provides solid support for caching through multiple drivers, it doesn't offer native support for cache tags. To work around this limitation, we'll integrate Symfony's Cache component, which brings tag support and fits well into the repository pattern we've already established. In this article, we'll build on the existing structure and focus on using cache tags to group and clear related data more efficiently.

 Join Our Monthly Newsletter

Get the latest news and popular articles to your inbox every month

We never send SPAM nor unsolicited emails