Quota and disk usage

NOTE! This document is outdated and has been replaced with newer documentation. See The database schema and the Data Layer API

This document covers the details about the quota system in BASE.

See also

Last updated: $Date: 2009-04-06 14:52:39 +0200 (må, 06 apr 2009) $


Quota

The QuotaData class is used to store different quota settings. Each setting may be used for many independent users and/or groups.

QuotaType

The QuotaTypeData class holds a predefined list of different types of quota.

QuotaValue and QuotaIndex

The quotaValues attribute holds the settings for a qouta. Each quota must contain at least a setting for the total quota at the primary location. For example the total quota may be set to 10 MB, while the quota for files may be set to 5 MB.

The QuotaIndex class is used to map location and QuotaTypeData with maxBytes.

The location is a flag telling what location the quota is valid for. There are three different values for location, however the offline value cannot be used in this table.

LocationDescription
0Offline
1Primary storage
2Secondary storage

DiskUsageData

The DiskUsageData class holds the actual information about how much disk space a DiskConsumingData item occupies. It also holds the ID of the owner of the item and, if it exists, the quota group of the owner.