Webform submission
2015 26 Jul

Archive Webform Submissions

By Gaurav Goyal

Webform is the 2nd most popular module after views and is widely used. Most of the sites built on drupal are using this module. It gives site administrators the functionality of creating as many forms as needed so that they can use them in surveys, contest, contact us forms etc.

This module also allows you to extract the reports based on these submissions, notify users for their queries and lots of other things. All in a very nice package which just works out of the box.

Having lots of legit webform submissions is good infact it shows that your campaign or survey is rocking out there. You will be very happy to see such a huge response :) But such an overwhelming response comes with a price...:(

What could be the problem with lots of webforms submissions? Suppose you have tons of webform submissions and they all are important for you. You can not let go of them. Imagine the load on your server when you try to download the submissions for last 3 months or one year. The select queries on joins of large tables can take a toll on the performance of the MySQL server. It will directly affect the performance of the site and you will go nuts as to what could you possibly do to prevent this as the requirement is pretty natural. Yes, you can think of increasing the hardware but these are infrequent requests so eventually this becomes a temporary solution, neither a good one nor for the long term.

Archiving old webform submissions sounds like the best solution. The module "webform_archive" does exactly that and frees up the current submissions table. It also allows downloading reports for those archives. Such an archive will reduce overhead on webform submission tables and the database queries for select and the lesser the current number of rows in the webform submissions table, the faster are insert statements executed and that reduces the load on the application and the server to a large extent.

This is one of the reasons I like open source. If you do something as a requirement for which there are no open source contributions, you could pick it as an idea to contribute. And the world makes your contribution better. And then, in future, as and when people start using your contribution, you get more motivated.
 

Module Link: https://www.drupal.org/project/webform_archive

 

Kudos to Drupal Community…:

Latest Blogs

Security

Tips to Secure your Drupal Website with Ease: Basic Security checklist

If someone were to break in your room, they would probably learn less about you than if they hacked you on the internet.

Read More

intor_react

Introduction to React JS and Components

React is a flexible JavaScript library for building user interfaces and it lets you compose complex UIs from small and isolated pieces of codes which is known as Components.

Read More

Flexbox

How to simplify the layout of your website using Flexbox?

Have you ever scratched your head while working with CSS to make some simple layouts for your website? Are you fed up of running to the UI developers for small layout designs every time?

Read More

cache_context

Drupal 8 Cache Context: An efficient way for context based caching.

We are well aware of the fact that Drupal Cache API is a remarkable feature introduced in Drupal 8.

Read More