Database Normalization

Normalization is the process of organizing data in a database in a way that minimizes redundancy and dependency, and thus improves data integrity. There are several levels of normalization, each of which has its own set of rules. To normalize a MySQL database, you can use the following steps: Once you have normalized your database, … Read more

Top 5 tips for Database Performance

Optimising the performance of a relational database is crucial for ensuring efficient and responsive applications. Here are my top five checks you should focus on to improve the performance of your relational database: Bonus Tip: Caching: Implement caching mechanisms to store frequently accessed data in-memory. Caching can reduce the number of database queries and significantly … Read more

How much memory does my Python code use? Memory Profiler!

Memory Profiler is an open-source module that uses the psutil module, to monitor the memory consumption of Python functions. It performs a line-by-line memory consumption analysis. Installation: Install Memory Profiler from PyPl using: pip install -U memory_profiler After you have configured memory_profiler, you can use a decorator to track the memory consumption of the function. The @profile decorator can … Read more

Python – How long does my code take to run?

Recently, I wanted to do some performance of my code. The following is what I’ve used to get some performance timing. The following is the code I’ve used. Run the code with the following: As we can see, the code took 8.3 seconds to run and the following is a breakdown of each module which … Read more