Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 28. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Max number of Records and start without List mode?

phpMyEdit Configuration     Max number of Records and start without List mode?
Odoslať novú tému   Odpovedať na tému    
 
roland     Založený: 24.03.2006   Príspevky: 25  
Príspevok Zaslal: 2010-06-15 09:29
Návrat hore  Odpovedať s citátom     

Hello,
i have an MySql-Table with about 415.000 records.
I made a PME Listmode-script, but there are always listed only 168.143 records (pme tells: "page 1 from 3363 - total records: 168.143"). Is there any restriction in PME, or apache or MySQL, which deny to pme to work really with ALL records? When i look in phpmyadmin, the table is shown with the correct number of records, and i can jump within seconds to the last record.

Also i want to reduce the time, which pme needs to show the 1st page of the list mode.
I would like to find a way, that the script at the beginning does NOT show the 1st page in list mode; it would be enough, when i just can show the search, where the user could input his search criteria and click on query. Is there a way to do that?

Thanks for your answers
roland

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2010-06-16 15:18
Návrat hore  Odpovedať s citátom     

If your form displays the drop down SELECT box for page 1, 2, 3, etc., turn it off. This causes the list to load slowly because it has to make dozens of queries to calculate pagination.

 
roland     Založený: 24.03.2006   Príspevky: 25  
Príspevok Zaslal: 2010-06-18 08:43
Návrat hore  Odpovedať s citátom     

doug Napísal:
If your form displays the drop down SELECT box for page 1, 2, 3, etc., turn it off. This causes the list to load slowly because it has to make dozens of queries to calculate pagination.


Hello, I dont think, that this helps. I have tried it and have set $opts['inc] to -1, and it need MUCH longer (some minutes) than setting $opts['inc] to 50 or 60. AND, i allways get the info that the list will habe 168143 records, but the table has something about 413000 records.

First, i want to be sure, that really ALL records are recognised.
Then, i want to start just with a screen to be able to set the search criteria, and AFTER setting the search criteria, the query should just list the fitting records.

Roland

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2010-06-18 10:20
Návrat hore  Odpovedať s citátom     

Post a screen shot of the form in List mode. Turning off such drop downs are absolutely necessary when working with large numbers of records. In fact, since I completely avoid this feature due to the performance hit, I can't even remember which setting enables it.

 
roland     Založený: 24.03.2006   Príspevky: 25  
Príspevok Zaslal: 2010-06-18 11:01
Návrat hore  Odpovedať s citátom     

doug Napísal:
Post a screen shot of the form in List mode. Turning off such drop downs are absolutely necessary when working with large numbers of records. In fact, since I completely avoid this feature due to the performance hit, I can't even remember which setting enables it.


Hello Doug,
i just found a solution for the problem with the number of records:
I usually use a small routine with an A-Z preselction menue (i think it was you, who helped me for this some years ago):
(oops, i dont find the way, how to put a screenshot in the thread)
With this A-Z preselecction menue, i get the problem, that i have only 163143 records.

I just saw, when i don't use this A-Z-menue (which I dont really need here), i see ALL 413000 records. So, my first problem seems to be solved.

But there is still the fact, that it needs some minutes to display the list (with $opts['inc']=-1). Also with a value of 50 or 60 it needs some time to show the 1st page.

For this usage, it would be enough, when the display starts with the filter selction routine, where the user just can input his search criteria in the field(s) and after this the query will be started and displays just the fitting records.

Roland

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2010-06-18 11:39
Návrat hore  Odpovedať s citátom     

Are the defined sort fields indexed? For example:

Kód:
$opts['sort_field'] = array('forum_id', 'thread_id', 'thread_pos');


 
roland     Založený: 24.03.2006   Príspevky: 25  
Príspevok Zaslal: 2010-06-24 16:51
Návrat hore  Odpovedať s citátom     

Hello Doug,
thanks for the tip.
I saw, that i have had to much fields in sort = true.
Now, i only have just ONE field in sort = true and have the same field defined as $opts['sort_field'] = array('Vertragsnummer');

I have the impression, that it runs now faster.

But i am still waiting for a tip, how to start the script just with the search fields - WITHOUT listing the first page...
Roland

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2010-06-24 17:55
Návrat hore  Odpovedať s citátom     

1 page of records must be listed in default List view. Otherwise, you're on your own to try to hack the class file to prevent loading the first set of records.

Using phpMyAdmin, if not already done, you need to apply an index to fields on which you frequently sort. When the table is poorly indexed, performance is also bad. phpMyEdit cannot compensate for bad indexes, and I cannot tell from your comments if the table is properly indexed or not. Note the indexes at the end of this example schema, for fields frequently used in sorting and other queries.


Kód:
CREATE TABLE IF NOT EXISTS `vs_content` (
  `id` smallint(5) unsigned NOT NULL DEFAULT '0',
  `forum_id` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `posted_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `author` varchar(255) NOT NULL DEFAULT '',
  `link` varchar(255) NOT NULL,
  `heading` varchar(255) NOT NULL,
  `meta_title` varchar(255) NOT NULL DEFAULT '',
  `meta_desc` text NOT NULL,
  `meta_key` text NOT NULL,
  `js_inc` varchar(255) NOT NULL DEFAULT '',
  `css_inc` varchar(255) NOT NULL DEFAULT '',
  `php_inc` varchar(255) NOT NULL DEFAULT '',
  `body_arg` varchar(255) NOT NULL DEFAULT '',
  `html_1` text NOT NULL,
  `html_2` text NOT NULL,
  `php_script` varchar(255) NOT NULL DEFAULT '',
  `content` text NOT NULL,
  `td_left` enum('1','0') NOT NULL DEFAULT '1',
  `td_left_inc` varchar(255) NOT NULL DEFAULT '',
  `td_left_content` text NOT NULL,
  `td_right` enum('0','1') NOT NULL DEFAULT '0',
  `td_right_inc` varchar(255) NOT NULL DEFAULT '',
  `td_right_content` text NOT NULL,
  `eval_content` enum('0','1','2') NOT NULL DEFAULT '0' COMMENT 'no, eval, highlight_string',
  `thread_id` mediumint(6) NOT NULL DEFAULT '0',
  `parent_id` mediumint(6) NOT NULL DEFAULT '0',
  `level` mediumint(6) NOT NULL DEFAULT '0',
  `thread_pos` mediumint(6) NOT NULL DEFAULT '0',
  `userid` mediumint(6) NOT NULL DEFAULT '0',
  `mli` enum('0','1') NOT NULL DEFAULT '0',
  `ul` enum('0','1','2','3','4','5','6','7','8','9') NOT NULL DEFAULT '0',
  `https` enum('0','1') NOT NULL DEFAULT '0',
  `nav` enum('0','1') NOT NULL DEFAULT '0',
  `hidden` enum('0','1') NOT NULL DEFAULT '0',
  `deleted` enum('0','1') NOT NULL DEFAULT '0',
  `spider` enum('1','0') NOT NULL DEFAULT '1',
  `priority` enum('0.0','0.1','0.2','0.3','0.4','0.5','0.6','0.7','0.8','0.9','1.0') NOT NULL DEFAULT '0.5',
  `changefreq` enum('always','daily','hourly','monthly','never','weekly','yearly') NOT NULL DEFAULT 'monthly',
  `updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  UNIQUE KEY `idx_id` (`id`),
  KEY `idx_thread_id` (`thread_id`),
  KEY `idx_thread_pos` (`thread_pos`),
  KEY `idx_userid` (`userid`),
  KEY `idx_forum_id` (`forum_id`),
  KEY `idx_deleted` (`deleted`),
  KEY `idx_hidden` (`hidden`),
  KEY `idx_ul` (`ul`),
  KEY `idx_mli` (`mli`),
  FULLTEXT KEY `idx_search` (`heading`,`content`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


 
Topshed9     Založený: 14.01.2008   Príspevky: 34  
Príspevok Zaslal: 2010-12-14 06:10
Návrat hore  Odpovedať s citátom     

Hello.

just after your
$opts['cgi']['prefix']['data'] = 'PME_data_';

add this line

$opts['cgi']['append']['PME_sys_fl'] = 1;

Topshed9

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov