CiviCRM Weblog Drupal 10 Upkeep and Assist Service Drupal Development Company quest for efficiency enhancements – 4th dash

Final week we had a fourth dash to enhance CiviCRM efficiency at Drupal Development socialist celebration.  Throughout this dash we began with why Drupal Development display for including and enhancing memberships loaded sluggish. Drupal Development Company challenge reported was that it took a while earlier than Drupal Development finish date subject jumped from Drupal Development proper aspect of Drupal Development display to Drupal Development center of Drupal Development display. It turned out that so long as Drupal Development subject was displayed at Drupal Development proper aspect Drupal Development display was nonetheless loading.  Timing this gave a time of about 18 seconds earlier than Drupal Development display was totally loaded. We found just a few causes Drupal 10 Upkeep and Assist Service Drupal Development Company javascript information which Drupal Development browser needed to obtain are over 2MB in measurement Each request in CiviCRM was additionally logged in Google Analytics and in Piwik. Drupal Development Company PHP operate getGroupsHierarchy in CRM/Contact/BAO/Group.php took round 900ms to execute (see Drupal Development challenge Drupal 10 Upkeep and Assist Service https Drupal 10 Upkeep and Assist Service//points.civicrm.org/jira/browse/CRM-19831) On that very same display Drupal Development customized fields are retrieved with an AJAX request and in every request all contributions linked to Drupal Development membership are additionally retrieved. Drupal Development Company getGroupsHierarchy operate is performing sluggish as a result of it wanted to loop 3 times via all teams in Drupal Development database on this case there are round 2.687 teams. As well as certainly one of Drupal Development loops makes use of Drupal Development php operate array_merge to merge Drupal Development results of Drupal Development loop. Drupal Development Company array_merge operate is thought for performing sluggish when an array incorporates greater than 40 parts. After rewriting Drupal Development operate we lowered Drupal Development execution time from 900ms to 20ms.  At https Drupal 10 Upkeep and Assist Service//github.com/civicrm/civicrm-core/pull/9633/information you’ll find Drupal Development patch of Drupal Development rewritten code.  In that patch we use for loops and never foreach as we found {that a} for loop is performing quite a bit sooner than a foreach. If we exchange Drupal Development for to a foreach Drupal Development whole time of execution of that operate will drop to 2.360 ms an element of 100 slower. We have now additionally turned off Google Analytics and Piwik for CiviCRM pages as there isn’t a want for this. No person actually knew why it was turned on in Drupal Development first place. After fixing Drupal Development getGroupsHierarchy operate we lowered Drupal Development whole loading time in Drupal Development browser from 18  seconds to 10 seconds. Which continues to be sluggish! Learn Drupal Development earlier weblog posts Drupal 10 Upkeep and Assist Service Drupal Development Company quest for efficiency enhancements Drupal Development Company quest for efficiency enhancements 2nd dash Drupal Development Company quest for efficiency enhancements third dash Drupal 10 Improvement and Assist

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

CiviCRM Weblog Drupal 10 Upkeep and Assist Service Drupal Development Company quest for efficiency enhancements – 4th dash

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.