Posts in MySQL NEWS

What shall cost you more: A bad performing database or hiring a DBA?

Posted by MySQL NEWS No Comment yet

While operating a business, costs always remain in the picture. Whether it is an expenditure, which is as large as setting up infrastructure or as small as miscellaneous operational costs, everything makes up to the balance sheet and matters while calculating the finances.

To run the business optimally by ensuring high profits, one has to be really good with the finances. It not only involves noting down the expenses and income but also requires extensive strategic planning to ensure a maximum profit by preventing extra expenditure and improving sources of income.

And thus, every cost has to be analyzed to ensure, whether it is actually worth it or not? Similar is the case of hiring a Database Administrator. While some people find it just an additional burden of expenditure, it is very important to analyze the one-time incurring cost and the value it adds to the business in order to make a right move.

Before we conclude whether or not hiring a DBA is essential, by comparing the costs of hiring a DBA to the cost a bad performing DBA would incur to the business, let us first understand the fundamentals of Database and its significance in the Entrepreneurial landscape.

Significance of the Database in the Entrepreneurial landscape

The Database has become quintessential for enterprises in today’s digital era. With the world leveraging the power of data to their benefit, the database holds a prominent position in the IT landscape. Technologies are built upon the data that has to be very efficiently stored and managed in order to keep the operations going seamless.

For fulfilling the fast-paced demand of building up advance functionalities, one has to ensure a strong foundation in the form of high performing databases.

The functioning of software platforms whether application or website totally rely upon the data flow between the modules of the system. Thereby, high database performance can ensure quick access to improving the overall functioning of the software.

Moreover, with the emergence of Data Science and Analytics, the importance of data in various industries have increased by several folds.

Using technologies such as Machine Learning have benefited the businesses in terms of attracting a larger customer base.

By leveraging these, enterprises are successful in delivering personalized experiences to their customers and plan strategies that attract business.

Such is the power of data in today’s time. While most of your competitors are using digital platforms to the behest of their business gains, you have to take additional steps to stand ahead.

To answer the question of whether hiring a DBA is worth it or not, we need to first understand what a DBA does and how’s that important to the business.

Why is DBA important for your business?

Now that we have already discussed the importance of having a strong and stable database infrastructure in place, it is also very essential to keep this database intact and high performing. That is where a DBA comes into the picture.

A diligent DBA with a proactive approach ensures that your Database Management system is not just robust against the breakdowns, but also performs well with a quick turnaround. This results in your operations being up almost every time, with the constant dataflow.

Moreover, quick data access would mean your software platform delivers faster performance and better user experience. This, in turn, would help your business grow in many ways.

Hiring DBA vs Bad performing Database: The Verdict

Can you afford to risk the robustness of your software platform just to save some incurring costs? Thinking on a practical note, hiring DBA is not a cost but an investment which you make in scaling your operations and making them robust by securing your data.

If you get all this by hiring a DBA, which not only gives a better user experience, and a faster platform but also improves your business prospects and reliability, then why not? Having a bad performing database could result in a slow functioning that can breakdown at any given point.

To have a great business, one must invest tactfully. Hiring a diligent expert DBA is that move, go ahead and you would reap the benefits by several folds.

The next step

Now that the importance of having a DBA, is clear, finding the right Database Professional for your business has to be the next and foremost step, which has to be taken diligently.

If you are looking for an expert DBA with vast industry experience, then you are in the right place. I, Eric Vanier, have been working as a Database consultant for over a decade with some of the Fortune 500 companies in my clientele, delivering optimized database solutions.

Feel free to contact me and get consultation for Database optimization of your Enterprise database.

MySQL Document Store: Everything you need to know about it

Posted by MySQL NEWS No Comment yet

Databases make an essential part in the online operations for enterprises. Depending upon the type of data that is required to be managed by enterprises, one has to choose among the different types of databases. Whether to use a SQL database or a NoSQL database completely depends upon the data that has to be stored, but sometimes there is a curious case of needing both the types of database simultaneously for the enterprise data management.

Well, in that case, MySQL Document Store comes to your rescue. This clearly optimizes your database resource use and cost by letting you enjoy both SQL and NoSQL database under a single Database Management System. MySQL Document Store enables you to work with SQL Relational Tables at the same time you can also work with schema-less JSON collections.

With MySQL Document Store you can use both the kinds of data without the need of having a separate NoSQL document database management system. This entitles you to avail maximum flexibility where you are free to mix and match relational data and JSON documents within the same application by using a single database. You can query the data models in the same application and fetch the results in the form of JSON or table formats.

MySQL Document Store does all of this using its X Dev API that focuses on CRUD (Create, Read, Update and Delete). It provides you with a fluent API where you can work with JSON formats seamlessly. It is the X protocol that is highly extensible and optimized for both CRUD as well as SQL API operations letting you get the best of both the worlds together on a single platform.

Architecture of MySQL Document Store

Let us understand how MySQL Document Store is capable of doing all this by shedding some light on its architecture and getting an insight into its components.MySQL Document Store consists of the following components:

ericvanier.com mysql architecture

Source: MySQL Document Store Documentation

  • Native JSON Document Storage

With a native JSON data type storage in binary, MySQL also provides the ability to create virtual columns. These columns can be indexed. JSON documents in a MySQL Document Store can be automatically validated.

  • X Plugin

MySQL Document Store has X Plugin that enables it to use X Protocol. It uses Connectors and the Shell to act as clients to the server.

  • X Protocol

It is a new client protocol that is based on the Protobuf library. The X Protocol works for both CRUD and SQL that makes it the foundationl for the dual operations.

  • X DevAPI

On top of the X Protocol, it is X DevAPI, which is a modern, new async developer API meant for the CRUD and SQL operations. The X DevAPI introduces the Collections as new Schema objects. The documents are stored in the Collections which have their dedicated CRUD operation set.

  • MySQL Shell

It is an interactive JavaScript, Python or SQL interface that supports the development and administration of MySQL server. MySQL Shell can be used for performing data queries, updates and various other administration operations on the database.

  • MySQL Connectors

Here are the MySQL Connectors that support X Protocol and allows you to use X DevAPI in the language you choose:

  • MySQL Connector/Node.js
  • MySQL Connector/PHP
  • MySQL Connector/Python
  • MySQL Connector/J
  • MySQL Connector/NET
  • MySQL Connector/C++

The Next Step

Apart from the flexibility and the optimization which the MySQL Document Store offers you, some of the other benefits of using MySQL Document Store are its high reliability, compliance, high availability, online hot backup, security, ease of use, reports, and analytics.

Given the extensive benefits that the MySQL Document Store has to offer you, it is very important that the Database Administrator uses it in the best possible manner for the optimization.

Having a diligent DBA for your enterprise database would help you in many ways to ensure the high performance of your database. As a result, your online operations will be much more efficient than ever.

ericvanier.com mysql dba

If you are looking forward to improving your enterprise database by hiring a diligent professional DBA who specializes in optimization, then maybe I could help you with this.

Being a DBA professional with an industry experience of over a decade, I would be obliged to help you in the optimization of your enterprise database.

Get in touch to find the best optimization solutions for your enterprise database.

eric vanier mysql performance

MySQL profiling for a better Database driven Application’s Performance

Posted by MySQL NEWS No Comment yet

With the increasing revolution in Information Technology, the need for robust and high performing databases is increasing by the passing day. The dependence of online operations by the enterprises is the driving force behind the requirement of a high performing and secured database that could efficiently manage data at huge scale.

That is why enterprises are witnessed trying their best to ensure that their databases are streamlined and work with higher efficiency by performing database optimization on a regular basis. The regular SQL performance tuning of the databases ensure that all the possible reasons that could cause a slowdown are proactively eliminated to ensure seamless data access and uninterrupted operations.

These activities are conducted under the expert supervision of experienced SQL DBA consultants who tend to ensure that the database delivers high performance by conducting regular tuning activities such as MySQL profiling for enhanced database based application’s performance.

In this article, let us understand what MySQL profiling is and how it is performed to ensure a better performance of an enterprise application that is based on MySQL database.

What is MySQL profiling?

MySQL profiling is a way to analyze the overall performance of an application that is driven by the MySQL database. Such an application which is largely dependent on the MySQL database comprises of many MySQL which are important for the functional operations of the application. It is, therefore, important to know whether these MySQL query statements that form a part of the application’s code are running efficiently or not.

In order to analyze the performance of these MySQL queries within the application’s code, diligent DBAs play an important role by conducting MySQL profiling to ensure that all the possible bottlenecks are eliminated and the application delivers high performance with better response time.

MySQL profiling consists of various techniques such as MySQL server performance profiling and the use of SQL query profiler.

How to perform Server Profiling with MySQL slow query profiler

MySQL slow query profiler gives a detailed insight into the SQL queries and helps in identifying the slow queries that the DBA could further optimize to ensure a better response time of the app. Details such as response time of the query, CPU usage, use of other resources such as I/O, network and Memory are the key parameters which could make a query need optimization. By optimizing queries, you can ensure that the CPU is able to process a higher number of SQL queries within the stipulated time which can significantly increase the app’s performance especially when the data volume is huge.

Based on the above insights, you can further investigate about the queries that are not performing well by using tools in MySQL such as EXPLAIN, STATUS, and SHOW which would help you further know the cause and identify the exact queries that are potentially slow.

You can set up server variables such as long_query_time for the SQL query profiler which could help in identifying the slow queries in the log. This way you would know which query is taking more than stipulated time to run and can identify the cause.

MySQL Query Optimization is a process that requires a diligent and proactive approach to find the best suitable way to implement a query saving time and resources of the MySQL Database Server.

During MySQL Query Optimization often the DBA writes the complex subqueries using temporary tables so as to improve their turnaround time and make them execute faster than before. Joins and Indexes are also used for optimizing queries. These tend to identify the queries with over workload and decrease it by bringing out alternative ways to execute the query.

It is always up to the DBA professionals who use their knowledge, experience, and expertise to optimize the slow queries in the best possible manner for faster and seamless performance of the database.

Way ahead for better Database performance

Although Server Performance Profiling gives you an insight into the areas causing slowdowns, it is always important to find the best solution for optimum performance of the Enterprise Database.  A diligent DBA professional makes sure to find the details and come out with the most feasible solution every time a slow query surfaces the log without compromising the functionality.

Striking the right way comes with experience, and when you are hiring a DBA it is a very important factor to look for. If you are looking to drive your business’s app in a much efficient manner, then MySQL profiling is something you must consider.

Get the right consultation for your app and ensure that it operates seamlessly without any bottlenecks or slowdowns. When it comes to database optimization for better performance, I am committed to offering you the best advice, which comes out of an experience of handling enterprise databases of fortune 500 companies for over 15 years.

Feel free to contact me and book a 30 minutes call with my performance team to experience a seamless high performing database.

Top New features added in MySQL 8.0

Posted by MySQL NEWS No Comment yet

Source: Wikipedia

A database has been a necessity for enterprises from the time immemorial. Especially after the enterprises have started moving their operations from offline to online platforms, the need for a highly robust and well-performing database is very significant. Enterprises often choose a database which they can rely upon, that would not cause any slowdowns and would provide easy access to the data.

For the enterprises choosing database makes it very important for their better operational performance which very much depends on the data access. Thereby, the database performance plays a vital role in the operations of your enterprise, which is why it is most often observed that database optimization is regularly practiced to keep up the high performance.

MySQL is one of the most used and likely recommended SQL enterprise database which is used to manage structured data by many enterprises globally. With its robust performance and constant evolution to match up the rapidly growing demands in the IT, MySQL has been successfully able to cater to the database requirements.

With the latest version MySQL 8.0, it has introduced some new features targeting to achieve better DB performance in enterprise database management at scale. In this article, we would explore what these new features introduced in MySQL 8.0 are and how would they affect the overall database performance. Also, in the end, we would discuss the possible way ahead and planning required for enhanced database optimization.

New Features introduced in MySQL 8.0

With the addition of these new features in MySQL 8.0, the main aim of improving database performance to optimize the operational performance of the enterprises has been successfully fulfilled to a major extent. Some of the foremost new features added in MySQL 8.0 are:

  • Atomic DDL

MySQL 8.0, supports Atomic Data Definition Language (DDL) statements as a new feature. With Atomic DDL statement, data dictionary updates, storage engine operations, and binary log writes, that are associated with the DDL operations are combined into a single atomic transaction. This is due to the data dictionary which is now transactional in MySQL 8.0, unlike the previous versions where it was stored as metadata.

Source: MySQL 8.0 Reference Manual

An Atomic DDL ensures that the transactional changes are either implemented in the data dictionary, storage engine and binary log or rolls back, even in a case when the server halts amidst the operation.

This has enhanced the database performance with the crash-free DDL, where either all the updates to the Data Dictionary happens or gets rolled back, making it crash-free.

  • InnoDB enhancements

MySQL 8.0 has also introduced InnoDB enhancements which are meant to improve the database performance. InnoDB is a general-purpose storage engine which offers high reliability and high performance both at the same time. It aims to protect the user data in maximum capacity by practicing transactions with commit, rollback, and crash-recovery capabilities.

It also ensures data integrity by supporting foreign key constraints, where the foreign keys updates, inserts, and deletes are checked to avoid any form inconsistencies or discrepancies in the data.

It has also helped in database optimization by optimizing queries that are based on the primary keys, by minimizing I/O for primary lookups with the help of clustered index which organizes the primary key data.

InnoDB has been successful in enhancing reliability in terms of rollback, crash-recovery options, and data integrity, at the same time, improving the database performance by making it crash-free and optimizing queries.

  • User Role Management

To ensure enhanced security of the database, user role management is now supported with the MySQL 8.0. Now users can be assigned different roles which can be altered or revoked during the sessions of the user account. These roles define the access to the users helping DBAs to maintain the security of the database efficiently.

The way ahead

MySQL 8.0 has made some promising feature updates for improved database performance and to enhance database optimization. But to leverage the benefits of these new features added in MySQL 8.0, it is very important to know that only a diligent DBA with an apt understanding of Advanced MySQL 8.0 is required.

To keep up the high performance of the database it is important to persevere with the latest updates for the database optimization. As a DBA with a vast experience of over two decades, I have incorporated the exploratory strategies along with my co-authors in my book Advanced MySQL 8.0 to equip fellow DBAs for the way ahead.

As an enterprise, if you are looking forward to optimizing your database and require expert consultation, then feel free to contact me and I shall be happy to provide the right consultation required to enhance the performance of your enterprise database management system.

Eric Vanier Advanced MySQL 8

Advanced MySQL 8.0

Posted by MySQL NEWS No Comment yet

Advanced MySQL 8.0 : Learn the tricks to enhance application performance

Today’s rate of technological evolution is unprecedented. Newer versions of software are now bringing in phenomenal improvements, not just in performance but in its core capabilities. When it comes to MySQL, the latest addition to the family is the MySQL 8.0 suite. With this version, enterprises have the capability to:

  • Further their application performance
  • Improve upon the existing data security
  • Enhance the overall infrastructure and more.

In my experience as a Database Administrator over the past two decades, I have seen some of the best ways of maintaining a database and some of the worst ones. However, among all the implementations, I have found that the lack of technical expertise is leading to underperforming and even hampered application stability.

As a DBA, you might have faced issues when you are trying to maintain a MySQL database. It’s quite common to find that there are many essential guidelines and components that aren’t being followed. The often leads to poor database performance. This has been the issue with a majority of the databases deployed in the world today.

The Problem that Thousands of DBAs Face

There is a simple solution to this concerning problem. And the solution is to provide the right kind of training. With this training, not only will you be able to use the advanced tools that MySQL8 provides effortlessly, you will be able to detect issues faster and find a solution sooner. Training has helped me immensely over the course of my journey as a DBA and this is an opportunity that I took to share my knowledge and expertise with others all around the world.

In my latest book, “Advanced MySQL 8.0 ”, I cover some of the most essential and critical components of MySQL8 that will help you master it.

What can you Expect from Advanced MySQL 8.0 ?

Eric Vanier Advanced MySQL 8

Let’s look at what you can expect from the book and how exactly it will benefit you.

Latest Features

Through my book, I introduce the latest features that comes with MySQL8 and how you can use them to gain maximum efficiency of your database. Gaining database efficiency leads to improved website performance and achieving this is essential as it delivers better user experience.

Advanced Indexing Strategies

If you have worked with large scale enterprise databases, you will be familiar with the impact indexing has on a database. While good indexes can pronounce the performance of the application, bad indexing can do some serious damage. With this book, we will go through some important indexing strategies and answer some fundamental questions on how and when to create indexes.

MySQL 8.0 comes with advanced support for query executions plans, and it is imperative that you learn how to do read and implement it for maximum impact on the database performance.

Techniques for Handling Large Queries

Large queries are an integral part of the enterprise databases. These are also one of the prime suspects for slow application load time and bad performance. However, it need not be the case always. Using case studies and new features from MySQL 8.0, we will explore how large queries can be handled.

Authentication and Security Updates with MySQL 8.0

Data Security is the single most important aspect for any enterprise and rightfully so. Data is extremely precious in today’s world and you will have to learn how to implement the security is the best possible way. I explain in depth how privileges, grants and user roles in MySQL 8.0 can be utilized to enhance data security.

Monitoring large Scale Databases

There are a variety of tools that can be integrated with the MySQL 8.0 databases that help in database monitoring. We will go through some of the most important tools that will help you as a DBA to monitor your database.

Is it worth it?

I have been a DBA for almost 2 decades and there have been innumerable people who have found the positive impact of the right kind of training. Fortunately, my co-authors and I have been able to pen down these concepts, guides and exploratory strategies for DBAs looking to advance their skills.

We have put in a lot of effort writing the Advanced MySQL 8 book that is aimed to equip you with some great set of tools and strategies. This combined with examples and use cases is sure to make you master the new suite and be prepared for the challenges that lie ahead of you.

You can check out in depth details, chapters and information regarding our book on Packt Publication

Improved Database Performance for Parallels Plesk Users

Posted by MySQL NEWS No Comment yet

With a lot of transformation on the online landscape, business is shifting their operations to the online space. On the other hand, many enterprises operate in order to cater to this urge of moving online by setting up new websites, reseller accounts, email accounts, DNS entries etc. through a web-based interface. To be able to provide with these services business enterprises use Parallels Plesk, which is a commercial web hosting platform.

Its control panel enables a server administrator to be able to set up new websites, reseller accounts, email accounts, and DNS entries via a web-based interface. This commercial web hosting data center automation software caters to the enterprises which provide Linux or Windows-based commercial web hosting service. Plesk is widely used by the developers, content managers, IT admins, digital agencies and infrastructure providers.

Importance of database optimization for Parallels Plesk users

Plesk manages the web hosting systems and applications on a single server. This makes it very crucial for the database servers to show a constant high performance without any slowdowns in order to not hinder the ongoing operations. Although expected, an all time high performance is not the reality among the Plesk users.

Plesk installs the custom versions of MySQL and PostgreSQL databases along with the Apache Tomcat Java platform server and ColdFusion server, or Microsoft SQL Server and Microsoft SQL Server Desktop Engine for Windows.

Often when these custom versions are not installed as per the requirements, there are persistent issues which result in the slowdown of the database server and impacts the overall performance.

Thus, to overcome these unwanted slowdowns, Plesk database tuning is often recommended by the database experts so as to optimize server performance. Let’s discuss what are the reasons behind the slowdowns and how Plesk database tuning could help in increasing the overall database server performance.

Plesk database tuning to Optimize server performance

For seamless web hosting services, it is important to maintain the high performance of the servers which often gets affected due to some, or the other reasons. Here are a few reasons causing database slowdowns for Parallels Plesk users and how to optimize the server performance by resolving them:

  • When the custom databases are not properly installed

Plesk requires custom installations of the databases, which might not be everyone’s cup of tea, given the lack of expertise. Any issues during installations could result in a long-term persistent slow performance due to the compatibility of the database servers.

To avoid this issue, it is always advised to consult expert Database Administrators with experience to install the database and perform initial setup. This assures a smooth and seamless functioning of the database servers in future.

  • High CPU usage

There could be a high CPU usage due to the more than the usual processing causing multiple slow queries.

A diligent database administrator could very well not only perform timely health checkups to trace the slow queries but also ensure to resolve them even before any slowdown happens to optimize server performance.

  • Optimize tables

Tables can cause slowdowns as there could be unused space which might not be optimized upon making changes or deleting rows/columns.

Optimizing a database table in Plesk can be very useful in improving the database performance by reusing the old portions of the tables in the linked list where the deleted rows/columns are still maintained. Plesk database tuning can be done by a diligent database professional, who could identify such areas and optimize the overall space utilization in the Plesk database.

The way forward

While Plesk database involves operations on a large scale as a single database server is responsible for hosting a lot of websites, DNS, reseller accounts or email accounts, it is important to optimize the server performance.

Database optimization is a key requirement for the seamless performance of the web hosting platform, and thus it is required to be well maintained with timely server health checks.

With an experience of 18 years as a database administrator, I am determined to ensure that the database is proactively optimized even before any issue occurs. If you are facing any issues with your Plesk Database and are looking for Plesk database tuning, feel free to contact me and get an in-depth consultation to optimize server performance.

ericvanier.com hqdefault

MongoDB vs Cassandra: Choose the right Database for your enterprise

Posted by MySQL NEWS No Comment yet

MongoDB vs Cassandra: Choose the right Database for your enterprise

Technological advancements have made the businesses go completely digital, which has also led to complete dependence on databases over the previously used hard copy record files. Since the entire data flow in the operations emerges from the database, having a high performing database makes a crucial need for any enterprise.

Choosing the right database makes it important for an enterprise especially to maintain seamless operations without any slowdowns. A diligent Database Administrator (DBA) would always guide you to choose the right database which could help you deliver optimum performance.

With the advancements in technology, databases too, have advanced over time, with a fleet of options available for the end user to choose as per their data and operational requirements. Database comes in different types such as SQL and NoSQL, this makes choosing the right type of database is an important decision.

Such are MongoDB and Cassandra NoSQL databases, which are used as databases to store the enterprise data. Although both of them are NoSQL databases yet they are different from one another and to choose the most suitable one, we have to explore their respective use cases.

Before we explore MongoDB vs Cassandra, to decide which one is more suitable for your enterprise let us first understand the basics of MongoDB and Cassandra individually.


MongoDB is a NoSQL database which is a Document Store Database. These are non-relational databases with the data stored in the form of JSON, BSON or XML document files. This data could be any desired data which is in the form of key-value pairs and metadata.

Document Store Database such as MongoDB is usually considered when the enterprise data which is to be stored is semi-structured in nature. Since the data is stored in the form of documents then the querying can only be performed within a given document rather than performing it across the entire database as it happens in the other structured databases.

MongoDB is also popular among the users for sharding apart from its scalability and caching real-time analytics. MongoDB sharding is a process wherein the data could be stored at multiple distributed platforms wherein different sections of the data is stored to offer high scalability.

MongoDB sharding is done using an index, where different indexes are assigned to different servers sometimes even as the range of values where these servers process the data accordingly.

This sharding is performed using routers which contact config servers to determine where the data should be read or written on the shard servers.

ericvanier.com MongoDB vs Cassandra2

MongoDB Use Cases

MongoDB could be a great choice if your enterprise needs high scalability and caching of real-time analytics. Though, it might not be ideal for transactional data such as accounting systems.

MongoDB supports rich object data models, these objects can have properties and can be nested to form multiple levels of hierarchy. Also, MongoDB enables you to index these properties, even if they are nested, providing you with a lot of flexibility.

This proves very useful when your data is unstructured or semi-structured. Also, MongoDB is a good option if you are looking for a single write i.e. on the primary as it is a single master model.


Cassandra is also a NoSQL database which is a Wide column store database. This column store database is non-relational in nature stores key-value type data. For Cassandra, the keyspaces are large column families which are used instead of schemas.

Cassandra provides the flexibility where different rows can have different number and types of columns. These databases are ideal for row-based data where the number of columns varies extensively.

Cassandra also offers scalability, as it is possible to deploy it across multiple servers, with an easy to use built-in replication.

Moreover, it allows querying in CQL which is quite similar to SQL which is used in relational databases.

ericvanier.com MongoDB vs Cassandra

Cassandra Use Cases

Cassandra could be a great choice when it comes to structured or semi-structured data where scalability is highly required. As it has no node failures or downtime, Cassandra is largely recommended if you want 100% availability, as it supports multiple master model. Thus, during the downtime of one master another could take over, resulting in full-time availability.

This is also the reason why Cassandra supports to take multiple writes, and hence with more number of servers you can scale writes.

If you are looking for a complete database querying, then Cassandra could make a good choice as it supports querying with CQL which is quite similar to SQL, thus providing proper language support.

ericvanier.com MongoDB vs Cassandra1

The final verdict MongoDB vs Cassandra

MongoDB and Cassandra although both are NoSQL, still they are different from one another as Cassandra suits more for semi-structured data, while MongoDB offers lot more flexibility to the unstructured data with its object-oriented approach.

Both the databases have their own areas where their usability is better over another. Having said that, optimum utilization of the database is only possible when the right choice is made.

To choose the right database a diligent database professional analyses all the aspects of the database requirement and the kind of the data which has to be stored.

Given that MongoDB suits enterprises where unstructured data has to be stored at scale and Cassandra where semi-structured data needs to be stored at scale with full-time availability.

Still feeling confused which database to choose for your enterprise? Feel free to contact me and get an sin-depth insightful consultation based on the analysis of your enterprise and data, to choose the right enterprise database for your business.

ericvanier.com database performance

15: Factors that affect Database Performance

Posted by MySQL NEWS No Comment yet

With every business going online lately, the demand for high capacity and an efficient database has become the need of the hour. To cater to this need it is very crucial to ensure a high performance of the database.

To ensure a high performing database, it is very important to know the factors which affect the Database Performance in one way or the other.

Before we get into the details of the factors affecting database performance, let us first understand what a database performance is and why it is so important.

What is Database Performance?

Database Performance is the speed with which the database responds to the requests of accessing data. Though it might be sounding really simple, it has many layers unto it making it complicated, especially for DBA (Database Administrators), who spend most of their time ensuring a high performance of the database.

Why is Database Performance so important?

What makes Database Performance more important is the dependency of several operations on the data they access from the database. So, any kind of a slowdown from the database could subsequently slow down the entire operations. This would cause the end user to put off from the service.

Thus, Database Performance is substantial for a good user experience.

Factors that affect Database Performance

Here is the list of factors that affect the Database Performance, and which have to be well taken care of for a higher Database Performance.



ericvanier.com database performance workload

One of the primary factors which affect the performance of a Database. Workload defines the data access requests sent to the Database by the system or end user. Clearly, a higher number of requests would mean an increased workload, which would require more processing from the Database end.


A workload is a cumulative of online transactions, batch jobs, ad hoc queries, analysis, business

intelligence queries, utilities and system commands which are directed via DBMS (Database

Management System) at any given point of time.


It is a dynamic entity and changes from time to time. While sometimes it could be predicted due to

some possible reasons such as peak business hours etc. but it often remains unpredicted making it a

challenging job for the DBA.


This way in an overall manner workload makes it as one of the primary reasons which largely affect

the Database Performance and thus is often monitored carefully by the diligent Database




Throughput plays an important part in the Database Performance being the measure of the input/output speed of the entire process. This input/output speed depicts whether the queries are responded in a fast or slow manner.


Throughput is not just dependent on the hardware factors such as the CPU speed and capacity but

also relies on the software of the system, such as the Operating System, Mainframes, software

programs, and their integration.


If the hardware and the software perform efficiently, then the throughput of the database is

observed to efficient resulting in better performance of the database.


These play an important role in database performance and affecting the throughput and other factors directly. Efficient hardware and software resources such as CPU, memory, cache controllers and microcode play an important role in a high performance of the Database.


ericvanier.com database performance optimized

An optimized system means a better performing system. This makes optimization of the database a crucial factor in ensuring a higher performance of the database.


An efficient Database Administrator ensures that the SQL queries are well optimized, by following

diligent optimization and database tuning practices. Thereby, writing an optimally efficient code for

better performance.


Contention usually happens when the workload on a database increases and many queries try to access same resources causing system conflicts. This usually results in a slowdown affecting the database performance.


This happens when one of the operations tries to access or update data on which another operation

is already making some changes causing conflicts. To avoid such conflicts during contention, DBMS

ensures a locking mechanism, which locks the access for other users on the piece of data when a

user is already updating it.


A lower contention means a better performance of the Database, due to fewer conflicts and

subsequent slowdowns.

In a nutshell

Improving these factors would definitely result in a high performing database, which would ensure more seamless business operations. Thus, Database Performance is analysed to the behest of business operations.


14: Five Ways to Improve Database Performance

Posted by MySQL NEWS No Comment yet

Five Ways to Improve Database Performance


Have you ever heard of the term ‘Big Data’? Chances are you have and most of the businesses both big and small work with data. Owing to the increasing demand of data, data management is more important than ever. The need to manage data while increasing efficiency has lead to the need for database optimization. This is very important for any Database administrator who aims to improve their database performance.



Because of multiple technologies being curated it important to understand how one can make the most of their database management system. So let’s have a look at some of the most important database performance improvement techniques.


Query Optimization


Managing the data is one thing but the way one fetches the data plays a major role. Most of the times, query optimization is necessary for good database performance. There are times when it is hard to differentiate between subqueries and joins and which one to use.


The efficiency of the query is directly proportional to the performance of the system. This mainly because of the amount of load put in order to fetch the data.


Hence, query optimization is one of the most important database performance improvement techniques.




Index is a major part of the database management system and is a major contributor to the database optimization process. An index basically contains keys to different parts of the table hence making it easier to locate data and decreasing the processing time. In case of a missing index, the search operation will run through the entire set of data in the table and put load on the system. Indexing is also necessary for query optimization which we discussed above.


Memory Allocation


When planning your database performance improvement techniques, memory allocation should be considered based on the realistic data requirements. Memory allocated to a database has a major impact on your system performance. Just like it needs powerful hardware, database needs ample free memory to boost system performance and speed up the processing.


A common method to keep a check on memory availability is through the number of page faults. The higher the number the lower is the memory. This has a negative impact on the database optimization process.



Thus, developers are advised to allocate higher memory to the database (approximately 70% of the total memory in case of the only application on the server). To modify the memory allocated, developers have to access the configuration file and use the innodb_buffer_pool_size key in the .cnf file.


Defragmenting the Data


According to Wikipedia, “ In computer storage, fragmentation is a phenomenon in which storage space is used inefficiently, reducing capacity and performance.” This is a very common scenario in database management systems and thus it is necessary to defragment the data.


Over time, the data stored starts to fragment. This impacts the performance of the system. But running disk defragmentation combines similar data thus decreasing the processing time.


Moreover, defragmentation solves our previously mentioned problems of memory allocation and query optimization.


Disk Type


Choosing the right disk type for your database is essential to the performance of the system.It is related to the hardware part of the optimization process. Just like a faster CPU and higher memory, the hardware properties of the memory disk can improve the performance of the system.


One of the most efficient disk types used are the solid-state drives (SSD). The performance relies highly on the performance of the hardware and the I/O processes will respond to the system proportional to the speed of the disk where the data is stored and secured. Thus, working with a faster disk drive, preferably SSD will help improve your database optimization process.





Database optimization is an ongoing process. There are numerous methods which can be used to speed up the process. Most of these will vary based on the requirements and the data. Thus, above mentioned are some common tips to improve database performance.


I’ve been a database performance expert for almost two decades. I have worked with many organizations, some of which belonged to the fortune 500. Get in touch with me today and we can discuss how I can help you to improve your production database performance.

ericvanier.com Database Tuning

13: Techniques for Database Optimization in MySQL

Posted by MySQL NEWS No Comment yet

Database lays the foundation for any kind of online operations. As the entire data flow into the system from the database, having a high database performance is important. It is thereby often recommended to opt for Database Optimization for the high performance of the database.

Diligent Database Administrators perform database tuning on a regular basis to keep up the performance of the database. But before we jump on to the MySQL Database optimization techniques, let us first understand what Database Optimization means.

What is Database Optimization?

Database Optimization refers to the techniques used in order to ensure the fastest possible time in which the SQL queries run for a database, resulting in a higher productivity. These techniques involve foreseeing different aspects to ensure an overall good health of the database.

Why is it important to perform Database tuning regularly?

A regular database tuning ensures a faster database access speed. This is done by finding all the possible areas of a slowdown by regular checkups. At the same time, queries are optimized to ensure they run fast and give the desired output.


For smaller databases where the data populated remains considerably less, the time difference between upon running a tuned database and any other database is not significant. But, when the databases are considerably large, then the time lapse between a tuned and an untuned database is significant, making regular database tuning important for overall seamless operations.

Techniques to perform Database tuning in MySQL

Here’s how you can optimize your database for a high performance by using the following MySQL database optimization techniques:

1.   Perform regular server health check-ups

Mysql Database optimization techniques

Server forms the spine of any database, and to keep it in good health, it is important to perform regular health check-ups. This would help you in detecting and rectifying areas causing a slowdown.

You can use tools for database tuning such as Execution Related Dynamic Management Views and Functions (Transact-SQL), which are commonly known as DMVs, to detect slowdowns by checking server health upon execution.

2.   Create optimized Indexes to make queries efficient

Creating efficient and well-optimized indexes is one of the most effective ways of database tuning in MySQL. A well-optimized index, allows a query to avoid unnecessary scanning of the entire tables for the result. This is very beneficial especially when the size of the database is quite large.

SQL server automatically measures and stores the statistical information of the distribution of values in the Indexed column as soon as the Index is created. This information helps in formulating the best optimizing strategy for the database.


3.   Create optimized Select queries

SELECT * (Select All) query often requires much more processing than other Select queries. Thus, it is always advised in order to use specific fields to make the processing lot faster for database tuning.

Also in the case where you want a fixed number of results, you can use LIMIT to get the required number of results and avoid unnecessary processing of the entire database.

These optimized Queries help a lot in database tuning by increasing performance, especially when the size of the database is large.

4.   Avoid using Nested loops in queries

Nested loops in the queries cause slowdown, especially when the data to be processed is large. Since there could not be parallel processing in the nested loops and they access the data only one after the other, it makes the process lengthier.

For database optimization in MySQL, try to avoid nesting loops while structuring queries.

5.   Analyze real-time statistics regularly

ericvanier.com Database Optimization

For database tuning, it is important to monitor and keep a track on the real-time statistics of the database by using different MySQL database optimization techniques and tools such as Live Query Statistics.

 Live Query Statistics, is very substantial for debugging SQL query performance related issues in real-time, as it displays statistics of step by step query execution. This helps in closely understanding and detecting which steps are causing slowdown by analyzing.

What makes this tool a pro is the statistics are available when the query is still executing, helping the Database administrator to understand and tweak queries where it is required for database tuning to boost the performance.


The next step

While the above MySQL optimization techniques will help you in database tuning, but you need to make sure you practice these basic techniques on a regular basis to ensure an optimized performance of your database.

If you require any further assistance in database performance related issues or an expert consultation, then you feel free to contact me, to help you overcome the challenges.