mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Performance Optimiertung für Mailverteilerübersicht:
Indizes für tbl_student und tbl_gruppe angelegt
This commit is contained in:
+103
-11
@@ -21895,7 +21895,7 @@
|
||||
<Left>8777</Left>
|
||||
<z>0</z>
|
||||
<Width>842</Width>
|
||||
<Height>512</Height>
|
||||
<Height>551</Height>
|
||||
<dz>0</dz>
|
||||
<RecalculateSizes>1</RecalculateSizes>
|
||||
<UseWorkSpaceRecalculateSizes>1</UseWorkSpaceRecalculateSizes>
|
||||
@@ -22717,7 +22717,7 @@
|
||||
<Left>155</Left>
|
||||
<z>0</z>
|
||||
<Width>859</Width>
|
||||
<Height>746</Height>
|
||||
<Height>785</Height>
|
||||
<dz>0</dz>
|
||||
<RecalculateSizes>1</RecalculateSizes>
|
||||
<UseWorkSpaceRecalculateSizes>1</UseWorkSpaceRecalculateSizes>
|
||||
@@ -24001,7 +24001,7 @@
|
||||
<Id>{20CDAA08-460E-4DFC-BFA0-02CCFEC43F1D}</Id>
|
||||
</WorkSpaceShape2>
|
||||
<NamePositionX>1091</NamePositionX>
|
||||
<NamePositionY>1147</NamePositionY>
|
||||
<NamePositionY>1157</NamePositionY>
|
||||
<Points>
|
||||
<Point>
|
||||
<x>1361</x>
|
||||
@@ -24013,11 +24013,11 @@
|
||||
</Point>
|
||||
<Point>
|
||||
<x>1045</x>
|
||||
<y>1168</y>
|
||||
<y>1188</y>
|
||||
</Point>
|
||||
<Point>
|
||||
<x>1014</x>
|
||||
<y>1168</y>
|
||||
<y>1188</y>
|
||||
</Point>
|
||||
</Points>
|
||||
</WorkSpaceLinePERRelationPG83>
|
||||
@@ -38762,8 +38762,8 @@
|
||||
<Author>Systementwicklung</Author>
|
||||
<Company>Technikum Wien</Company>
|
||||
<Version>2.0</Version>
|
||||
<CreatedDate>2009-04-17T11:15:21.000+02:00</CreatedDate>
|
||||
<ModifiedDate>2010-10-20T11:19:09.719+02:00</ModifiedDate>
|
||||
<CreatedDate>2009-04-17T10:15:21.000+01:00</CreatedDate>
|
||||
<ModifiedDate>2010-11-02T16:54:32.845+01:00</ModifiedDate>
|
||||
<Project>FH-Complete 2.0</Project>
|
||||
<Description></Description>
|
||||
</ModelTitlePG83>
|
||||
@@ -87204,7 +87204,9 @@ art=tbl_benutzerrolle.art & tbl_rolleberechtigung.art</Comments>
|
||||
<Id>{361EF147-269D-4247-8F7C-5A3876A3999A}</Id>
|
||||
</DataType>
|
||||
<UserDataType/>
|
||||
<IndexItems/>
|
||||
<IndexItems>
|
||||
<Id>{94DC5576-6BF8-4F65-AE27-B13617372171}</Id>
|
||||
</IndexItems>
|
||||
<Default/>
|
||||
<CheckConstraints/>
|
||||
<KeyConstraint/>
|
||||
@@ -87971,7 +87973,51 @@ art=tbl_benutzerrolle.art & tbl_rolleberechtigung.art</Comments>
|
||||
<PK>
|
||||
<Id>{FE1E6CC3-0C5C-4D7C-8C72-EB6B61006929}</Id>
|
||||
</PK>
|
||||
<Indexes/>
|
||||
<Indexes>
|
||||
<PERIndexPG83 ObjectType="2012" CSAOName="PERIndexPG83">
|
||||
<Id>{94E22F2D-ED74-4524-90AD-86425C36245A}</Id>
|
||||
<Name>idx_gruppe_studiengang_kz</Name>
|
||||
<Ordinal>0</Ordinal>
|
||||
<HistoryID>{7B4AB9FD-B09A-476C-B473-7987BC24683A}</HistoryID>
|
||||
<GlobalOrder>0</GlobalOrder>
|
||||
<RNOffset>0</RNOffset>
|
||||
<RNLength>0</RNLength>
|
||||
<IgnoreNC>0</IgnoreNC>
|
||||
<GenerateCode>1</GenerateCode>
|
||||
<BeforeScript></BeforeScript>
|
||||
<AfterScript></AfterScript>
|
||||
<Notes></Notes>
|
||||
<Comments></Comments>
|
||||
<Unique>0</Unique>
|
||||
<Caption>idx_gruppe_studiengang_kz</Caption>
|
||||
<Expression></Expression>
|
||||
<GenerateExpression>0</GenerateExpression>
|
||||
<IndexItems>
|
||||
<PERIndexItemPG83 ObjectType="2013" CSAOName="PERIndexItemPG83">
|
||||
<Id>{94DC5576-6BF8-4F65-AE27-B13617372171}</Id>
|
||||
<Name>studiengang_kz</Name>
|
||||
<Ordinal>0</Ordinal>
|
||||
<HistoryID>{9A3D8EFC-1F29-4A32-9CC1-F0F752961332}</HistoryID>
|
||||
<GlobalOrder>0</GlobalOrder>
|
||||
<GenerateCode>1</GenerateCode>
|
||||
<BeforeScript></BeforeScript>
|
||||
<AfterScript></AfterScript>
|
||||
<Notes></Notes>
|
||||
<Comments></Comments>
|
||||
<SortDescending>0</SortDescending>
|
||||
<Attribute>
|
||||
<Id>{1F96C2CC-3B85-4759-8935-4AFE204167BC}</Id>
|
||||
</Attribute>
|
||||
<ForeignKeys/>
|
||||
</PERIndexItemPG83>
|
||||
</IndexItems>
|
||||
<Relations/>
|
||||
<IxAccess>btree</IxAccess>
|
||||
<Predicate></Predicate>
|
||||
<Tablespace/>
|
||||
<FillFactor></FillFactor>
|
||||
</PERIndexPG83>
|
||||
</Indexes>
|
||||
<CheckConstraints/>
|
||||
<Category/>
|
||||
<Triggers/>
|
||||
@@ -100223,7 +100269,9 @@ ALTER TABLE tbl_mitarbeiter ALTER COLUMN personalnummer DROP NOT NULL;</Comments
|
||||
<Id>{361EF147-269D-4247-8F7C-5A3876A3999A}</Id>
|
||||
</DataType>
|
||||
<UserDataType/>
|
||||
<IndexItems/>
|
||||
<IndexItems>
|
||||
<Id>{30CD3153-2D52-47DD-A12A-24117B7FE7EE}</Id>
|
||||
</IndexItems>
|
||||
<Default/>
|
||||
<CheckConstraints/>
|
||||
<KeyConstraint/>
|
||||
@@ -100672,7 +100720,51 @@ ALTER TABLE tbl_mitarbeiter ALTER COLUMN personalnummer DROP NOT NULL;</Comments
|
||||
<PK>
|
||||
<Id>{89002400-A377-467B-9B3D-ED97760ED02B}</Id>
|
||||
</PK>
|
||||
<Indexes/>
|
||||
<Indexes>
|
||||
<PERIndexPG83 ObjectType="2012" CSAOName="PERIndexPG83">
|
||||
<Id>{87F46E62-0ABE-4489-B6D0-5A7DA619325E}</Id>
|
||||
<Name>idx_student_studiengang_kz</Name>
|
||||
<Ordinal>0</Ordinal>
|
||||
<HistoryID>{E67F589E-CE62-4ECB-9C40-D40591E3BD3C}</HistoryID>
|
||||
<GlobalOrder>0</GlobalOrder>
|
||||
<RNOffset>0</RNOffset>
|
||||
<RNLength>0</RNLength>
|
||||
<IgnoreNC>0</IgnoreNC>
|
||||
<GenerateCode>1</GenerateCode>
|
||||
<BeforeScript></BeforeScript>
|
||||
<AfterScript></AfterScript>
|
||||
<Notes></Notes>
|
||||
<Comments></Comments>
|
||||
<Unique>0</Unique>
|
||||
<Caption>idx_student_studiengang_kz</Caption>
|
||||
<Expression></Expression>
|
||||
<GenerateExpression>0</GenerateExpression>
|
||||
<IndexItems>
|
||||
<PERIndexItemPG83 ObjectType="2013" CSAOName="PERIndexItemPG83">
|
||||
<Id>{30CD3153-2D52-47DD-A12A-24117B7FE7EE}</Id>
|
||||
<Name>studiengang_kz</Name>
|
||||
<Ordinal>0</Ordinal>
|
||||
<HistoryID>{06CA881B-ADF0-46FC-A457-3045937F9137}</HistoryID>
|
||||
<GlobalOrder>0</GlobalOrder>
|
||||
<GenerateCode>1</GenerateCode>
|
||||
<BeforeScript></BeforeScript>
|
||||
<AfterScript></AfterScript>
|
||||
<Notes></Notes>
|
||||
<Comments></Comments>
|
||||
<SortDescending>0</SortDescending>
|
||||
<Attribute>
|
||||
<Id>{42D2D626-F858-4C04-A419-DA9431EC0576}</Id>
|
||||
</Attribute>
|
||||
<ForeignKeys/>
|
||||
</PERIndexItemPG83>
|
||||
</IndexItems>
|
||||
<Relations/>
|
||||
<IxAccess>btree</IxAccess>
|
||||
<Predicate></Predicate>
|
||||
<Tablespace/>
|
||||
<FillFactor></FillFactor>
|
||||
</PERIndexPG83>
|
||||
</Indexes>
|
||||
<CheckConstraints/>
|
||||
<Category/>
|
||||
<Triggers/>
|
||||
|
||||
@@ -1657,6 +1657,37 @@ if(!@$db->db_query("SELECT anmerkung_lehreinheit FROM lehre.vw_stundenplan LIMIT
|
||||
echo 'lehre.vw_stundenplan(dev): Spalte anmerkung_lehreinheit hinzugefuegt<br>';
|
||||
}
|
||||
|
||||
// Index hinzufuegen
|
||||
if($result = $db->db_query("Select count(*) as anzahl FROM pg_class WHERE relname ='idx_student_studiengang_kz'"))
|
||||
{
|
||||
if(!$row = $db->db_fetch_object($result))
|
||||
{
|
||||
if($row->anzahl==0)
|
||||
{
|
||||
$qry = "CREATE INDEX idx_student_studiengang_kz ON public.tbl_student (studiengang_kz);";
|
||||
if(!$db->db_query($qry))
|
||||
echo '<strong>public.tbl_student: '.$db->db_last_error().'</strong><br>';
|
||||
else
|
||||
echo ' public.tbl_student: Index auf studiengang_kz angelegt!<br>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Index hinzufuegen
|
||||
if($result = $db->db_query("Select count(*) as anzahl FROM pg_class WHERE relname ='idx_gruppe_studiengang_kz'"))
|
||||
{
|
||||
if(!$row = $db->db_fetch_object($result))
|
||||
{
|
||||
if($row->anzahl==0)
|
||||
{
|
||||
$qry = "CREATE INDEX idx_gruppe_studiengang_kz ON public.tbl_gruppe (studiengang_kz);";
|
||||
if(!$db->db_query($qry))
|
||||
echo '<strong>public.tbl_gruppe: '.$db->db_last_error().'</strong><br>';
|
||||
else
|
||||
echo ' public.tbl_gruppe: Index auf studiengang_kz angelegt!<br>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo '<br>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user