ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Compress

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Compresses an enterprise geodatabase by removing states not referenced by a version and redundant rows.

Usage

  • To improve geodatabase performance, the geodatabase should be compressed periodically. A compressed geodatabase is more efficient. A geodatabase that is never compressed is more likely to develop errors.

  • Once a geodatabase is compressed, deleted records cannot be recovered.

  • Compression of geodatabases not only reduces space requirements but can also reduce overall retrieval times.

  • When the Compress tool is executed, the geodatabase is unavailable until compression is completed.

  • Only the geodatabase administrator can perform compression.

Syntax

Compress_management (in_workspace)
ParameterExplanationData Type
in_workspace

Specify the database connection file that connects to the enterprise geodatabase to be compressed. Connect as the geodatabase administrator.

Workspace

Code sample

This stand-alone Python script uses the Compress tool to compress the geodatabase.

import arcpy
 
arcpy.Compress_management("c:/Connection to brockville.sde")

Environments

  • Current Workspace

Licensing information

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Geodatabase Administration toolset
  • Geodatabase compression
  • Compressing a geodatabase on a database server

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal