[Nulled] » Nulled Warez Scripts » CMS (Site management systems) » DataLife Engine » DLE hacks » Optimization of database queries for multicategories
December 26 2022

Optimization of database queries for multicategories

While working on one interesting module, I noticed an interesting pattern.
When I use the module, the content begins to form and output faster.
I experimented a little and decided to share this solution with you :)
The request processing speed increases almost 10 times. Tested experimentally.

A detailed description of all measurements can be found on my website

Installation
Open File engine/engine.php
Find the code:
$where_category = "category = '{$get_cats}'";
                
                }
            
            }
After it insert:
            $db->query("SELECT id FROM ".PREFIX."_post WHERE {$where_category} AND approve=1" . $where_date);
            $ids = array();
            while($r = $db->get_row()) $ids[] = $r['id'];
            if(count($ids)) $ids = implode(',',$ids);
            else $ids = 0;
            $where_category = "id IN ($ids)";That's it :)

Why should I install this hack even though the cache is turned on?
1. The cache is still periodically cleaned.
2. In DLE up to version 11, only the first 6 navigation pages are cached. Version 11 already has 11 pages. But still, all other pages are output without cache.

DLE version: any

Information

Visitors who are in the group Guests they can't download files.
Log in to the site under your login and password or if you are a new user go through the process registrations on the website.

Comments:

This publication has no comments yet. You can be the first!

Information the publication:

Related News

26 December 2022
DLE hacks
Pages like a movie

Probably many people have seen how the pages on kinopoisk are arranged. That is, the page on the movie itself has

Read more
16 November 2022
Discuz! script / Modules Discuz!
discuz code

discuz code the diskuz method Registration method runlog()

Read more
26 December 2022
DLE hacks
The release schedule of

The hack will allow you to display a list of episodes of the series that have already been released or will be

Read more
26 December 2022
DLE modules
Search torrents by title

This module searches for torrent distributions by name or by additional field. Uses AJAX technology, thereby does

Read more
26 December 2022
DLE modules
Trailer VideoBimba 1.0

A module for searching trailers. Uses the built-in DLE cache without loading the server. It works both in

Read more

Information

Users of visitor are not allowed to comment this publication.

Site Search

Site Menu


☑ Scripts Software

Calendar

«    May 2024    »
MonTueWedThuFriSatSun
 12345
6789101112
13141516171819
20212223242526
2728293031 

Advertisement

Survey on the website

Evaluate the work of the site
 

Statistics

  • +6 Total articles 5578
  • +14 Comments 3149
  • +33 Users : 4132