-
After analysis of this query performance it looks like it works fast if I/O is not restricted (ie. due to limits on a hardware side). All queries are done using indexes so there is nothing to optimize.
We could record jids that were used in messages that were removed and check just them, but I do not think this will have a major impact on the installation.
-
I was restarting our test server instance and I noticed that there seems to be an error in the schema:
xmpp-1 | Loading schema from file(s): postgresql-message-archiving-3.3.0.sql, URI: jdbc:postgresql://db/tigasedb?user=tigase_user&password=*********** xmpp-1 | Failed to execute query: do $$ begin if exists (select 1 where (select to_regclass('public.tig_ma_msgs_ts_index')) is not null) then drop index tig_ma_msgs_ts_index on tig_ma_msgs; end if; end$$ xmpp-1 | xmpp-1 | xmpp-1 | xmpp-1 | ===== xmpp-1 | Failure: ERROR: syntax error at or near "on" xmpp-1 | Position: 141 xmpp-1 | ===== xmpp-1 | xmpp-1 | xmpp-1 | Failure: ERROR: syntax error at or near "on" xmpp-1 | Position: 141
-
Type |
Task
|
Priority |
Normal
|
Assignee | |
Version |
none
|
Sprints |
n/a
|
Customer |
n/a
|
Iterations
-
tigase-server-8.5.0 Open
Issue Votes (0)
Check performance of
Tig_MA_RemoveMessages
store procedure as following part of it causes rather large impact on database: