Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
514d89c2
Commit
514d89c2
authored
Mar 20, 2016
by
Juan Francisco Calderon Zumba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1117: Improve performance of monitoring plugin by adding indexes.
parent
ca122761
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
63 additions
and
9 deletions
+63
-9
changelog.html
src/plugins/monitoring/changelog.html
+4
-0
plugin.xml
src/plugins/monitoring/plugin.xml
+2
-2
monitoring_db2.sql
src/plugins/monitoring/src/database/monitoring_db2.sql
+3
-1
monitoring_hsqldb.sql
src/plugins/monitoring/src/database/monitoring_hsqldb.sql
+3
-1
monitoring_mysql.sql
src/plugins/monitoring/src/database/monitoring_mysql.sql
+4
-2
monitoring_oracle.sql
src/plugins/monitoring/src/database/monitoring_oracle.sql
+3
-1
monitoring_postgresql.sql
...plugins/monitoring/src/database/monitoring_postgresql.sql
+3
-1
monitoring_sqlserver.sql
src/plugins/monitoring/src/database/monitoring_sqlserver.sql
+3
-1
monitoring_db2.sql
...gins/monitoring/src/database/upgrade/4/monitoring_db2.sql
+6
-0
monitoring_hsqldb.sql
...s/monitoring/src/database/upgrade/4/monitoring_hsqldb.sql
+6
-0
monitoring_mysql.sql
...ns/monitoring/src/database/upgrade/4/monitoring_mysql.sql
+6
-0
monitoring_oracle.sql
...s/monitoring/src/database/upgrade/4/monitoring_oracle.sql
+8
-0
monitoring_postgresql.sql
...nitoring/src/database/upgrade/4/monitoring_postgresql.sql
+6
-0
monitoring_sqlserver.sql
...onitoring/src/database/upgrade/4/monitoring_sqlserver.sql
+6
-0
No files found.
src/plugins/monitoring/changelog.html
View file @
514d89c2
...
...
@@ -43,6 +43,10 @@
<h1>
Monitoring Plugin Changelog
</h1>
<p><b>
1.5.3
</b>
-- March 22, 2016
</p>
<ul>
<li>
[
<a
href=
'https://igniterealtime.org/issues/browse/OF-1117'
>
OF-1117
</a>
] - Improve performance of monitoring plugin by adding database indexes.
</li>
</ul>
<p><b>
1.5.2
</b>
-- Feb 15, 2016
</p>
<ul>
...
...
src/plugins/monitoring/plugin.xml
View file @
514d89c2
...
...
@@ -5,11 +5,11 @@
<name>
Monitoring Service
</name>
<description>
Monitors conversations and statistics of the server.
</description>
<author>
Jive Software
</author>
<version>
1.5.
2
</version>
<version>
1.5.
3
</version>
<date>
2/15/2016
</date>
<minServerVersion>
4.0.0
</minServerVersion>
<databaseKey>
monitoring
</databaseKey>
<databaseVersion>
3
</databaseVersion>
<databaseVersion>
4
</databaseVersion>
<adminconsole>
<tab
id=
"tab-server"
>
...
...
src/plugins/monitoring/src/database/monitoring_db2.sql
View file @
514d89c2
-- $Revision$
-- $Date$
INSERT
INTO
ofVersion
(
name
,
version
)
VALUES
(
'monitoring'
,
3
);
INSERT
INTO
ofVersion
(
name
,
version
)
VALUES
(
'monitoring'
,
4
);
CREATE
TABLE
ofConversation
(
conversationID
INTEGER
NOT
NULL
,
...
...
@@ -39,6 +39,8 @@ CREATE TABLE ofMessageArchive (
body
LONG
VARCHAR
);
CREATE
INDEX
ofMessageArchive_con_idx
ON
ofMessageArchive
(
conversationID
);
CREATE
INDEX
ofMessageArchive_fromjid_idx
ON
ofMessageArchive
(
fromJID
);
CREATE
INDEX
ofMessageArchive_tojid_idx
ON
ofMessageArchive
(
toJID
);
CREATE
TABLE
ofRRDs
(
id
VARCHAR
(
100
)
NOT
NULL
,
...
...
src/plugins/monitoring/src/database/monitoring_hsqldb.sql
View file @
514d89c2
//
$
Revision
$
//
$
Date
$
INSERT
INTO
ofVersion
(
name
,
version
)
VALUES
(
'monitoring'
,
3
);
INSERT
INTO
ofVersion
(
name
,
version
)
VALUES
(
'monitoring'
,
4
);
CREATE
TABLE
ofConversation
(
conversationID
BIGINT
NOT
NULL
,
...
...
@@ -39,6 +39,8 @@ CREATE TABLE ofMessageArchive (
body
LONGVARCHAR
);
CREATE
INDEX
ofMessageArchive_con_idx
ON
ofMessageArchive
(
conversationID
);
CREATE
INDEX
ofMessageArchive_fromjid_idx
ON
ofMessageArchive
(
fromJID
);
CREATE
INDEX
ofMessageArchive_tojid_idx
ON
ofMessageArchive
(
toJID
);
CREATE
TABLE
ofRRDs
(
id
VARCHAR
(
100
)
NOT
NULL
,
...
...
src/plugins/monitoring/src/database/monitoring_mysql.sql
View file @
514d89c2
#
$
Revision
$
#
$
Date
$
INSERT
INTO
ofVersion
(
name
,
version
)
VALUES
(
'monitoring'
,
3
);
INSERT
INTO
ofVersion
(
name
,
version
)
VALUES
(
'monitoring'
,
4
);
CREATE
TABLE
ofConversation
(
conversationID
BIGINT
NOT
NULL
,
...
...
@@ -37,7 +37,9 @@ CREATE TABLE ofMessageArchive (
sentDate
BIGINT
NOT
NULL
,
stanza
TEXT
NULL
,
body
TEXT
,
INDEX
ofMessageArchive_con_idx
(
conversationID
)
INDEX
ofMessageArchive_con_idx
(
conversationID
),
INDEX
ofMessageArchive_fromjid_idx
(
fromJID
),
INDEX
ofMessageArchive_tojid_idx
(
toJID
)
);
CREATE
TABLE
ofRRDs
(
...
...
src/plugins/monitoring/src/database/monitoring_oracle.sql
View file @
514d89c2
-- $Revision$
-- $Date$
INSERT
INTO
ofVersion
(
name
,
version
)
VALUES
(
'monitoring'
,
3
);
INSERT
INTO
ofVersion
(
name
,
version
)
VALUES
(
'monitoring'
,
4
);
CREATE
TABLE
ofConversation
(
conversationID
INTEGER
NOT
NULL
,
...
...
@@ -39,6 +39,8 @@ CREATE TABLE ofMessageArchive (
body
LONG
);
CREATE
INDEX
ofMessageArchive_con_idx
ON
ofMessageArchive
(
conversationID
);
CREATE
INDEX
ofMessageArchive_fromjid_idx
ON
ofMessageArchive
(
fromJID
);
CREATE
INDEX
ofMessageArchive_tojid_idx
ON
ofMessageArchive
(
toJID
);
CREATE
TABLE
ofRRDs
(
id
VARCHAR2
(
100
)
NOT
NULL
,
...
...
src/plugins/monitoring/src/database/monitoring_postgresql.sql
View file @
514d89c2
-- $Revision$
-- $Date$
INSERT
INTO
ofVersion
(
name
,
version
)
VALUES
(
'monitoring'
,
3
);
INSERT
INTO
ofVersion
(
name
,
version
)
VALUES
(
'monitoring'
,
4
);
CREATE
TABLE
ofConversation
(
conversationID
INTEGER
NOT
NULL
,
...
...
@@ -39,6 +39,8 @@ CREATE TABLE ofMessageArchive (
body
TEXT
);
CREATE
INDEX
ofMessageArchive_con_idx
ON
ofMessageArchive
(
conversationID
);
CREATE
INDEX
ofMessageArchive_fromjid_idx
ON
ofMessageArchive
(
fromJID
);
CREATE
INDEX
ofMessageArchive_tojid_idx
ON
ofMessageArchive
(
toJID
);
CREATE
TABLE
ofRRDs
(
id
VARCHAR
(
100
)
NOT
NULL
,
...
...
src/plugins/monitoring/src/database/monitoring_sqlserver.sql
View file @
514d89c2
/* $Revision$ */
/* $Date$ */
INSERT
INTO
ofVersion
(
name
,
version
)
VALUES
(
'monitoring'
,
3
);
INSERT
INTO
ofVersion
(
name
,
version
)
VALUES
(
'monitoring'
,
4
);
CREATE
TABLE
ofConversation
(
conversationID
BIGINT
NOT
NULL
,
...
...
@@ -39,6 +39,8 @@ CREATE TABLE ofMessageArchive (
body
NVARCHAR
(
MAX
)
);
CREATE
INDEX
ofMessageArchive_con_idx
ON
ofMessageArchive
(
conversationID
);
CREATE
INDEX
ofMessageArchive_fromjid_idx
ON
ofMessageArchive
(
fromJID
);
CREATE
INDEX
ofMessageArchive_tojid_idx
ON
ofMessageArchive
(
toJID
);
CREATE
TABLE
ofRRDs
(
id
NVARCHAR
(
100
)
NOT
NULL
,
...
...
src/plugins/monitoring/src/database/upgrade/4/monitoring_db2.sql
0 → 100644
View file @
514d89c2
-- $Revision$
-- $Date$
CREATE
INDEX
ofMessageArchive_fromjid_idx
ON
ofMessageArchive
(
fromJID
);
CREATE
INDEX
ofMessageArchive_tojid_idx
ON
ofMessageArchive
(
toJID
);
-- Update database version
UPDATE
ofVersion
SET
version
=
4
WHERE
name
=
'monitoring'
;
src/plugins/monitoring/src/database/upgrade/4/monitoring_hsqldb.sql
0 → 100644
View file @
514d89c2
-- $Revision$
-- $Date$
CREATE
INDEX
ofMessageArchive_fromjid_idx
ON
ofMessageArchive
(
fromJID
);
CREATE
INDEX
ofMessageArchive_tojid_idx
ON
ofMessageArchive
(
toJID
);
-- Update database version
UPDATE
ofVersion
SET
version
=
4
WHERE
name
=
'monitoring'
;
src/plugins/monitoring/src/database/upgrade/4/monitoring_mysql.sql
0 → 100644
View file @
514d89c2
-- $Revision$
-- $Date$
ALTER
TABLE
ofMessageArchive
ADD
INDEX
ofMessageArchive_fromjid_idx
(
fromJID
);
ALTER
TABLE
ofMessageArchive
ADD
INDEX
ofMessageArchive_tojid_idx
(
toJID
);
-- Update database version
UPDATE
ofVersion
SET
version
=
4
WHERE
name
=
'monitoring'
;
src/plugins/monitoring/src/database/upgrade/4/monitoring_oracle.sql
0 → 100644
View file @
514d89c2
-- $Revision$
-- $Date$
CREATE
INDEX
ofMessageArchive_fromjid_idx
ON
ofMessageArchive
(
fromJID
);
CREATE
INDEX
ofMessageArchive_tojid_idx
ON
ofMessageArchive
(
toJID
);
-- Update database version
UPDATE
ofVersion
SET
version
=
4
WHERE
name
=
'monitoring'
;
COMMIT
;
src/plugins/monitoring/src/database/upgrade/4/monitoring_postgresql.sql
0 → 100644
View file @
514d89c2
-- $Revision$
-- $Date$
CREATE
INDEX
ofMessageArchive_fromjid_idx
ON
ofMessageArchive
(
fromJID
);
CREATE
INDEX
ofMessageArchive_tojid_idx
ON
ofMessageArchive
(
toJID
);
-- Update database version
UPDATE
ofVersion
SET
version
=
4
WHERE
name
=
'monitoring'
;
src/plugins/monitoring/src/database/upgrade/4/monitoring_sqlserver.sql
0 → 100644
View file @
514d89c2
-- $Revision$
-- $Date$
CREATE
INDEX
ofMessageArchive_fromjid_idx
ON
ofMessageArchive
(
fromJID
);
CREATE
INDEX
ofMessageArchive_tojid_idx
ON
ofMessageArchive
(
toJID
);
-- Update database version
UPDATE
ofVersion
SET
version
=
4
WHERE
name
=
'monitoring'
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment