PostfixAdmin for BananaNetwork - to apply required patches before release or release in async to the official version
https://github.com/postfixadmin/postfixadmin
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84a5203fe1
- replace get_domain_properties() calls with two SQL queries that fetch the domain data and count the number of mailboxes and aliases per domain. This change speeds up list-domain extremely on setups with lots of domains, mailboxes and aliases. The old code took several minutes on my test data (that's about 55000 mailboxes and their aliases), the new code only needs some seconds. - $domain_properties now uses the domain name as index key instead of a serial number templates/admin_list-domain.php: - replace usage of $list_domains with $domain_properties - change main loop to use the domain name as $domain_properties array key instead of a serial number upgrade.php: - upgrade_655(): add index on domain column in mailbox and alias table. This speeds up list-domain from 14s to about 1s on my test data in MySQL (the 14s were _after_ the changes in list_domain.php) - added _add_index() function to hide the database specific details in upgrade functions This commit should fix the performance problems reported on http://sourceforge.net/forum/forum.php?thread_id=2343349&forum_id=676076 git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@655 a1433add-5e2c-0410-b055-b7f2511e0802 |
16 years ago | |
---|---|---|
ADDITIONS | 16 years ago | |
DOCUMENTS | 16 years ago | |
VIRTUAL_VACATION | 16 years ago | |
admin | 17 years ago | |
css | 16 years ago | |
debian | 16 years ago | |
images | 17 years ago | |
languages | 16 years ago | |
model | 16 years ago | |
templates | 16 years ago | |
tests | 16 years ago | |
users | 16 years ago | |
CHANGELOG.TXT | 16 years ago | |
GPL-LICENSE.TXT | 18 years ago | |
INSTALL.TXT | 16 years ago | |
LICENSE.TXT | 17 years ago | |
backup.php | 17 years ago | |
broadcast-message.php | 16 years ago | |
common.php | 16 years ago | |
config.inc.php | 16 years ago | |
create-admin.php | 17 years ago | |
create-alias-domain.php | 16 years ago | |
create-alias.php | 16 years ago | |
create-domain.php | 16 years ago | |
create-mailbox.php | 16 years ago | |
delete.php | 16 years ago | |
edit-active-admin.php | 17 years ago | |
edit-active-domain.php | 17 years ago | |
edit-active.php | 16 years ago | |
edit-admin.php | 16 years ago | |
edit-alias.php | 16 years ago | |
edit-domain.php | 16 years ago | |
edit-mailbox.php | 16 years ago | |
edit-vacation.php | 17 years ago | |
fetchmail.php | 16 years ago | |
functions.inc.php | 16 years ago | |
index.php | 16 years ago | |
list-admin.php | 16 years ago | |
list-domain.php | 16 years ago | |
list-virtual.php | 16 years ago | |
login.php | 16 years ago | |
logout.php | 16 years ago | |
main.php | 16 years ago | |
motd-users.txt | 18 years ago | |
motd.txt | 18 years ago | |
password.php | 16 years ago | |
search.php | 16 years ago | |
sendmail.php | 16 years ago | |
setup.php | 16 years ago | |
upgrade.php | 16 years ago | |
variables.inc.php | 16 years ago | |
viewlog.php | 17 years ago | |
xmlrpc.php | 16 years ago |