diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-09-14 21:39:00 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-09-14 21:39:00 +0000 |
| commit | 99cadd490e2af606e02c95107245cd7928c5a8fe (patch) | |
| tree | 56d42d318b59d5021eb1c53eeb70f252158c8519 /modules_v3/individuals/module.php | |
| parent | 560f434f0194c503cd9f973fa493854e62b65425 (diff) | |
| download | webtrees-99cadd490e2af606e02c95107245cd7928c5a8fe.tar.gz webtrees-99cadd490e2af606e02c95107245cd7928c5a8fe.tar.bz2 webtrees-99cadd490e2af606e02c95107245cd7928c5a8fe.zip | |
Performance - it is faster to extract the sex from the gedcom record than it is to fetch the i_sex column from the database
Diffstat (limited to 'modules_v3/individuals/module.php')
| -rw-r--r-- | modules_v3/individuals/module.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules_v3/individuals/module.php b/modules_v3/individuals/module.php index 651963abff..5658d7fb1d 100644 --- a/modules_v3/individuals/module.php +++ b/modules_v3/individuals/module.php @@ -218,7 +218,7 @@ class individuals_WT_Module extends WT_Module implements WT_Module_Sidebar { } $rows= WT_DB::prepare( - "SELECT ? AS type, i_id AS xref, i_file AS ged_id, i_gedcom AS gedrec, i_sex". + "SELECT ? AS type, i_id AS xref, i_file AS ged_id, i_gedcom AS gedrec". " FROM `##individuals`, `##name`". " WHERE (i_id LIKE ? OR n_sort LIKE ?)". " AND i_id=n_id AND i_file=n_file AND i_file=?". |
