acs-content-repository

  • last updated 1 hour ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Reduced generation of dead tuples in postgres.

Background: In the old version, the fields latest and live

revisions were updated always via two separate dmlDML statements.

Every update causes in PostgreSQL (tested to pg 9.6) one more dead

tuple, such that on busy systems, we see 30k + dead tuples per

hour. These dead tuples in turn cause more auto vacuum operations

and can lead to abandoned query plans.

This change can reduce the number of dead tuples on cr_items into

half, by allowing both fields to be set in one operation (namely

content_item__set_live_revision). This function has an optional 4th

argument that can cause this optimization. For legacy applications,

nothing changes.

Btw: since all commonly used applications use the live revision, the

fallback of the latest_revision is unused. One can consider to

remove the cr_revision_latest_tr, at least on on certain

installations.

bump revision to 5.1.9d23

    • -23
    • +31
    ./sql/postgresql/content-item.sql
    • -6
    • +13
    ./sql/postgresql/content-revision.sql
file upgrade-5.9.1d22-5.9.1d23.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d22-5.9.1d23.sql
Created new proc cr_check_mime_type, centralizing the retrieval of the mime_type from uploaded file's information.

Applied the new proc to the different situations in the system when we require mime_type retrieval: content-repository, file-storage and xotcl CrItem

TODO: get the real mime_type from the file content, but this would require some modification in the data model.

  1. … 2 more files in changeset.
Avoid using deprecated content_item__new/17

Fixed if statement in oracle upgrade script

    • -1
    • +7
    ./sql/oracle/upgrade/upgrade-5.9.1d20-5.9.1d21.sql
Simplified upgrade-5.9.1d20-5.9.1d21.sql postgres script

Added Oracle version of acs-cr upgrade-5.9.1d20-5.9.1d21.sql script and simplified postgres version.

    • -0
    • +65
    ./sql/oracle/upgrade/upgrade-5.9.1d20-5.9.1d21.sql
file upgrade-5.9.1d20-5.9.1d21.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/oracle/upgrade/upgrade-5.9.1d20-5.9.1d21.sql
Updated mimetypes

file upgrade-5.9.1d20-5.9.1d21.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d20-5.9.1d21.sql
- modernize HTML

    • -2
    • +2
    ./www/doc/guide/object-relationships.adp
    • -3
    • +3
    ./www/doc/guide/object-relationships.html
  1. … 1 more file in changeset.
- use same logic in all update-scripts for cr_mime_types

    • -4
    • +28
    ./sql/oracle/upgrade/upgrade-5.9.1d11-5.9.1d12.sql
    • -0
    • +1
    ./sql/oracle/upgrade/upgrade-5.9.1d12-5.9.1d13.sql
    • -0
    • +1
    ./sql/oracle/upgrade/upgrade-5.9.1d13-5.9.1d14.sql
    • -0
    • +1
    ./sql/oracle/upgrade/upgrade-5.9.1d15-5.9.1d16.sql
- update upgrade script to more powerful version used in later update scripts as well

- fix old typo in label of unknown mimtype (was "Unkown")

    • -0
    • +1
    ./sql/oracle/upgrade/upgrade-5.9.1d19-5.9.1d20.sql
file upgrade-5.9.1d19-5.9.1d20.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/oracle/upgrade/upgrade-5.9.1d19-5.9.1d20.sql
    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d19-5.9.1d20.sql
- use consistently varchar(1000) for object_types

- bump version number to 5.9.1d19

file upgrade-5.9.1d18-5.9.1d19.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d18-5.9.1d19.sql
file upgrade-5.9.1d17-5.9.1d18.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d17-5.9.1d18.sql
- documentation updates

    • -191
    • +212
    ./www/doc/requirements.adp
  1. … 16 more files in changeset.
- modernize HTML

    • -120
    • +120
    ./www/doc/requirements.html
    • -139
    • +139
    ./www/doc/api/content.html
    • -203
    • +203
    ./www/doc/api/extlink.html
    • -1394
    • +1394
    ./www/doc/api/item.html
    • -569
    • +569
    ./www/doc/api/keyword.html
    • -462
    • +462
    ./www/doc/api/permission.html
    • -488
    • +488
    ./www/doc/api/revision.html
  1. … 192 more files in changeset.
- updated version numbers, regenerated documentation

    • -112
    • +112
    ./www/doc/requirements.adp
  1. … 286 more files in changeset.
- add editor hints to .vuh files

  1. … 30 more files in changeset.
- regenerated documentation

  1. … 241 more files in changeset.
- avoid call of deprecated function

- improve HTML validity of documentation

- add missing enumeration type to create script

- fix ambiguity for content_item__new in template__new

- add/update mime types for text/csv text/vcard, text/calendar

- bump version number to 5.9.1d17

    • -0
    • +36
    ./sql/oracle/upgrade/upgrade-5.9.1d15-5.9.1d16.sql
    • -7
    • +12
    ./sql/postgresql/content-template.sql
file upgrade-5.9.1d15-5.9.1d16.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/oracle/upgrade/upgrade-5.9.1d15-5.9.1d16.sql
    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d15-5.9.1d16.sql
file upgrade-5.9.1d16-5.9.1d17.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./sql/postgresql/upgrade/upgrade-5.9.1d16-5.9.1d17.sql
- prefer "localurl" over "return_url" as name of page filter

  1. … 14 more files in changeset.
- improve security of page_contracts