<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Creating a database design</title>
    <link>/en/admin/configuring-db/creating-db-design/</link>
    <description>Recent content in Creating a database design on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/admin/configuring-db/creating-db-design/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Admin: About Database Designer</title>
      <link>/en/admin/configuring-db/creating-db-design/about-db-designer/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/about-db-designer/</guid>
      <description>
        
        
        &lt;p&gt;Database Designer uses sophisticated strategies to create a design that provides excellent performance for ad-hoc queries and specific queries while using disk space efficiently.&lt;/p&gt;
&lt;p&gt;During the design process, Database Designer analyzes the logical schema definition, sample data, and sample queries, and creates a physical schema (&lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/projection/&#34; title=&#34;Optimized collections of table columns that provide physical storage for data.&#34;&gt;projections&lt;/a&gt;) in the form of a SQL script that you deploy automatically or manually. This script creates a minimal set of superprojections to ensure K-safety.&lt;/p&gt;
&lt;p&gt;In most cases, the projections that Database Designer creates provide excellent query performance within physical constraints while using disk space efficiently.&lt;/p&gt;
&lt;h2 id=&#34;general-design-options&#34;&gt;General design options&lt;/h2&gt;
&lt;p&gt;When you run Database Designer, several general options are available:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Create a comprehensive or incremental design.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Optimize for query execution, load, or a balance of both.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Require K-safety.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Recommend unsegmented projections when feasible.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Analyze statistics before creating the design.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;design-input&#34;&gt;Design input&lt;/h2&gt;
&lt;p&gt;Database Designer bases its design on the following information that you provide:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Design queries&lt;/strong&gt; that you typically run during normal database operations.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Design tables&lt;/strong&gt; that contain sample data.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;output&#34;&gt;Output&lt;/h2&gt;
&lt;p&gt;Database Designer yields the following output:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/building-design/&#34;&gt;Design script&lt;/a&gt; that creates the projections for the design in a way that meets the optimization objectives and distributes data uniformly across the cluster.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/deploying-design/deploying-designs-manually/&#34;&gt;Deployment script&lt;/a&gt; that creates and refreshes the projections for your design. For comprehensive designs, the deployment script contains commands that remove non-optimized projections. The deployment script includes the full design script.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/deploying-design/deploying-designs-using-db-designer/&#34;&gt;Backup script&lt;/a&gt; that contains SQL statements to deploy the design that existed on the system before deployment. This file is useful in case you need to revert to the pre-deployment design.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;design-restrictions&#34;&gt;Design restrictions&lt;/h2&gt;
&lt;p&gt;Database Designer-generated designs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Exclude live aggregate or Top-K projections. You must create these manually. See &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-projection/#&#34;&gt;CREATE PROJECTION&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Do not sort, segment, or partition projections on LONG VARBINARY and LONG VARCHAR columns.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Do not support operations on complex types.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;post-design-options&#34;&gt;Post-design options&lt;/h2&gt;
&lt;p&gt;While running Database Designer, you can choose to deploy your design automatically after the deployment script is created, or to deploy it manually, after you have reviewed and tested the design. It is recommended that you test the design on a non-production server before deploying the design to your production server.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: How Database Designer creates a design</title>
      <link>/en/admin/configuring-db/creating-db-design/how-db-designer-creates-design/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/how-db-designer-creates-design/</guid>
      <description>
        
        
        &lt;h2 id=&#34;design-recommendations&#34;&gt;Design recommendations&lt;/h2&gt;
&lt;p&gt;Database Designer-generated designs can include the following recommendations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Sort &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/buddy-projection/&#34; title=&#34;Required for K-safety.&#34;&gt;buddy projections&lt;/a&gt; in the same order, which can significantly improve load, recovery, and site node performance. All buddy projections have the same base name so that they can be identified as a group.&lt;/p&gt;

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

If you manually create projections, Database Designer recommends a buddy with the same sort order, if one does not already exist. By default, Database Designer recommends both super and non-super segmented projections with a buddy of the same sort order and segmentation.

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Accepts unlimited queries for a comprehensive design.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Identifies similar design queries and assigns them a signature.&lt;/p&gt;
&lt;p&gt;For queries with the same signature, Database Designer weights the queries, depending on how many queries have that signature. It then considers the weighted query when creating a design.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Recommends and creates projections in a way that minimizes data skew by distributing data uniformly across the cluster.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Produces higher quality designs by considering UPDATE, DELETE, and SELECT statements.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Database Designer access requirements</title>
      <link>/en/admin/configuring-db/creating-db-design/db-designer-access-requirements/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/db-designer-access-requirements/</guid>
      <description>
        
        
        &lt;p&gt;By default, only users with the DBADMIN role can run Database Designer. Non-DBADMIN users can run Database Designer only if they are granted the necessary privileges and DBDUSER role, as described below. You can also enable users to run Database Designer on the Management Console (see &lt;a href=&#34;#Enabling&#34;&gt;Enabling Users to run Database Designer on Management Console&lt;/a&gt;).&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;a name=&#34;Step1&#34;&gt;&lt;/a&gt;Add a temporary folder to all cluster nodes with &lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-location/#&#34;&gt;CREATE LOCATION&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE LOCATION &amp;#39;/tmp/dbd&amp;#39; ALL NODES;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Grant the desired user CREATE privileges to create schemas on the current (DEFAULT) database, with &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-db/&#34;&gt;GRANT DATABASE&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; GRANT CREATE ON DATABASE DEFAULT TO &lt;span class=&#34;code-variable&#34;&gt;dbd-user&lt;/span&gt;;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Grant the DBDUSER role to &lt;em&gt;&lt;code&gt;dbd-user&lt;/code&gt;&lt;/em&gt; with &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-role/&#34;&gt;GRANT ROLE&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; GRANT DBDUSER TO &lt;span class=&#34;code-variable&#34;&gt;dbd-user&lt;/span&gt;;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;On all nodes in the cluster, grant &lt;em&gt;&lt;code&gt;dbd-user&lt;/code&gt;&lt;/em&gt; access to the temporary folder with &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-storage-location/&#34;&gt;GRANT LOCATION&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; GRANT ALL ON LOCATION &amp;#39;/tmp/dbd&amp;#39; TO &lt;span class=&#34;code-variable&#34;&gt;dbd-user&lt;/span&gt;;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Grant &lt;em&gt;&lt;code&gt;dbd-user&lt;/code&gt;&lt;/em&gt; privileges on one or more database schemas and their tables, with &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-schema/&#34;&gt;GRANT SCHEMA&lt;/a&gt; and &lt;a href=&#34;../../../../en/sql-reference/statements/grant-statements/grant-table/&#34;&gt;GRANT TABLE&lt;/a&gt;, respectively:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; GRANT ALL ON SCHEMA &lt;span class=&#34;code-variable&#34;&gt;this-schema&lt;/span&gt;[,...] TO &lt;span class=&#34;code-variable&#34;&gt;dbd-user&lt;/span&gt;;
=&amp;gt; GRANT ALL ON ALL TABLES IN SCHEMA &lt;span class=&#34;code-variable&#34;&gt;this-schema&lt;/span&gt;[,...] TO &lt;span class=&#34;code-variable&#34;&gt;dbd-user&lt;/span&gt;;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Enable the DBDUSER role on &lt;em&gt;&lt;code&gt;dbd-user&lt;/code&gt;&lt;/em&gt; in one of the following ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;As &lt;em&gt;&lt;code&gt;dbd-user&lt;/code&gt;&lt;/em&gt;, enable the DBDUSER role with &lt;a href=&#34;../../../../en/sql-reference/statements/set-statements/set-role/&#34;&gt;SET ROLE&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SET ROLE DBDUSER;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;As DBADMIN, automatically enable the DBDUSER role for &lt;em&gt;&lt;code&gt;dbd-user&lt;/code&gt;&lt;/em&gt; on each login, with &lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-user/#&#34;&gt;ALTER USER&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER USER &lt;span class=&#34;code-variable&#34;&gt;&lt;span class=&#34;code-variable&#34;&gt;dbd-user&lt;/span&gt;&lt;/span&gt; DEFAULT ROLE DBDUSER;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
&lt;p&gt;When you grant the DBDUSER role, be sure to &lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/user-resource-allocation/&#34;&gt;associate a resource pool with that user&lt;/a&gt; to manage resources while Database Designer runs.&lt;/p&gt;
&lt;p&gt;Multiple users can run Database Designer concurrently without interfering with each other or exhausting cluster resources. When a user runs Database Designer, either with Management Console or programmatically, execution is generally contained by the user&#39;s resource pool, but might spill over into system resource pools for less-intensive tasks.&lt;/p&gt;

&lt;/div&gt;
&lt;p&gt;&lt;a name=&#34;Enabling&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;enabling-users-to-run-database-designer-on-management-console&#34;&gt;Enabling users to run Database Designer on Management Console&lt;/h2&gt;
&lt;p&gt;Users who are already granted the DBDUSER role and required privileges, as described &lt;a href=&#34;#Step1&#34;&gt;above&lt;/a&gt;, can also be enabled to run Database Designer on &lt;a href=&#34;../../../../en/mc/users-roles-and-privileges/user-admin-mc/&#34;&gt;Management Console&lt;/a&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Log in as a superuser to Management Console.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;MC Settings&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;User Management&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Specify an MC user:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;To create an MC user, click &lt;strong&gt;Add&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To use an existing MC user, select the user and click &lt;strong&gt;Edit&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Next to the &lt;strong&gt;DB access level&lt;/strong&gt; window, click &lt;strong&gt;Add&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the &lt;strong&gt;Add Permissions&lt;/strong&gt; window:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;From the &lt;strong&gt;Choose a database&lt;/strong&gt; drop-down list, select the database on which to create a design.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the &lt;strong&gt;Database username&lt;/strong&gt; field, enter the &lt;em&gt;&lt;code&gt;dbd-user&lt;/code&gt;&lt;/em&gt; user name that you created &lt;a href=&#34;#Step1&#34;&gt;earlier&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the Database password field, enter the database password.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the &lt;strong&gt;Restrict access&lt;/strong&gt; drop-down list, select the level of MC user for this user.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;OK&lt;/strong&gt; to save your changes.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Log out of the MC Super user account.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The MC user is now mapped to &lt;em&gt;&lt;code&gt;dbd-user&lt;/code&gt;&lt;/em&gt;. Log in as the MC user and use Database Designer to create an optimized design for your database.&lt;/p&gt;
&lt;h2 id=&#34;dbduser-capabilities-and-limitations&#34;&gt;DBDUSER capabilities and limitations&lt;/h2&gt;
&lt;p&gt;As a DBDUSER, the following constraints apply:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Designs must set K-safety to be equal to system K-safety. If a design violates K-safety by lacking enough buddy projections for tables, the design does not complete.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You cannot explicitly advance the ancient history mark (AHM)—for example, call &lt;a href=&#34;../../../../en/sql-reference/functions/management-functions/epoch-functions/make-ahm-now/#&#34;&gt;MAKE_AHM_NOW&lt;/a&gt;—until after deploying the design.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When you create a design, you automatically have privileges to manipulate that design. Other tasks might require additional privileges:

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Task&lt;/th&gt; 

&lt;th &gt;
Required privileges&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Submit design tables&lt;/td&gt; 

&lt;td &gt;




&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;USAGE on the design table schema&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;OWNER on the design table&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Submit a single design query&lt;/td&gt; 

&lt;td &gt;


&lt;ul&gt;
&lt;li&gt;EXECUTE on the design query&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Submit a file of design queries&lt;/td&gt; 

&lt;td &gt;




&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;READ privilege on the storage location that contains the query file&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;EXECUTE privilege on all queries in the file&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Submit design queries from results of a user query&lt;/td&gt; 

&lt;td &gt;




&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;EXECUTE privilege on the user queries&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;EXECUTE privilege on each design query retrieved from the results of the user query&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Create design and deployment scripts&lt;/td&gt; 

&lt;td &gt;




&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;WRITE privilege on the storage location of the design script&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;WRITE privilege on the storage location of the deployment script&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Logging projection data for Database Designer</title>
      <link>/en/admin/configuring-db/creating-db-design/logging-projection-data-db-designer/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/logging-projection-data-db-designer/</guid>
      <description>
        
        
        &lt;p&gt;When you run Database Designer, the Optimizer proposes a set of ideal projections based on the options that you specify. When you deploy the design, Database Designer creates the design based on these projections. However, space or budget constraints may prevent Database Designer from creating all the proposed projections. In addition, Database Designer may not be able to implement the projections using ideal criteria.&lt;/p&gt;
&lt;p&gt;To get information about the projections, first enable the Database Designer logging capability. When enabled, Database Designer stores information about the proposed projections in two Data Collector tables. After Database Designer deploys the design, these logs contain information about which proposed projections were actually created. After deployment, the logs contain information about:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Projections that the Optimizer proposed&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Projections that Database Designer actually created when the design was deployed&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Projections that Database Designer created, but not with the ideal criteria that the Optimizer identified.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The DDL used to create all the projections&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Column optimizations&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you do not deploy the design immediately, review the log to determine if you want to make any changes. If the design has been deployed, you can still manually create some of the projections that Database Designer did not create.&lt;/p&gt;
&lt;p&gt;To enable the Database Designer logging capability, see &lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/logging-projection-data-db-designer/enabling-logging-db-designer/#&#34;&gt;Enabling logging for Database Designer&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To view the logged information, see &lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/logging-projection-data-db-designer/viewing-db-designer-logs/#&#34;&gt;Viewing Database Designer logs&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: General design settings</title>
      <link>/en/admin/configuring-db/creating-db-design/general-design-settings/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/general-design-settings/</guid>
      <description>
        
        
        &lt;p&gt;Before you run Database Designer, you must provide specific information on the design to create.&lt;/p&gt;
&lt;p&gt;&lt;a name=&#34;Design_Name&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;design-name&#34;&gt;Design name&lt;/h2&gt;
&lt;p&gt;All designs that you create with Database Designer must have unique names that conform to the conventions described in &lt;a href=&#34;../../../../en/sql-reference/language-elements/identifiers/#&#34;&gt;Identifiers&lt;/a&gt;, and are no more than 32 characters long (16 characters if you use Database Designer in Administration Tools or Management Console).&lt;/p&gt;
&lt;p&gt;The design name is incorporated into the names of files that Database Designer generates, such as its deployment script. This can help you differentiate files that are associated with different designs.&lt;/p&gt;
&lt;p&gt;&lt;a name=&#34;Design_Types&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;design-type&#34;&gt;Design type&lt;/h2&gt;
&lt;p&gt;Database Designer can create two distinct design types: comprehensive or incremental.&lt;/p&gt;
&lt;p&gt;&lt;a name=&#34;Comprehe&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&#34;comprehensive-design&#34;&gt;Comprehensive design&lt;/h3&gt;
&lt;p&gt;A comprehensive design creates an initial or replacement design for all the tables in the specified schemas. Create a comprehensive design when you are creating a new database.&lt;/p&gt;
&lt;p&gt;To help Database Designer create an efficient design, load representative data into the tables before you begin the design process. When you load data into a table, the database creates an unoptimized &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/superprojection/&#34; title=&#34;A projection that includes all columns in an anchor table.&#34;&gt;superprojection&lt;/a&gt; so that Database Designer has projections to optimize. If a table has no data, Database Designer cannot optimize it.&lt;/p&gt;
&lt;p&gt;Optionally, supply Database Designer with representative queries that you plan to use so Database Designer can optimize the design for them. If you do not supply any queries, Database Designer creates a generic optimization of the superprojections that minimizes storage, with no query-specific projections.&lt;/p&gt;
&lt;p&gt;During a comprehensive design, Database Designer creates deployment scripts that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Create projections to optimize query performance.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create replacement buddy projections when Database Designer changes the encoding of existing projections that it decides to keep.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a name=&#34;Incremen&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&#34;incremental-design&#34;&gt;Incremental design&lt;/h3&gt;
&lt;p&gt;After you create and deploy a comprehensive database design, your database is likely to change over time in various ways. Consider using Database Designer periodically to create incremental designs that address these changes. Changes that warrant an incremental design can include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Significant data additions or updates&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;New or modified queries that you run regularly&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Performance issues with one or more queries&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Schema changes&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a name=&#34;Optimization_Objectives&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;optimization-objective&#34;&gt;Optimization objective&lt;/h2&gt;
&lt;p&gt;Database Designer can optimize the design for one of three objectives:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Load&lt;/strong&gt;: Designs that are optimized for loads minimize database size, potentially at the expense of query performance.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Query&lt;/strong&gt;: Designs that are optimized for query performance. These designs typically favor fast query execution over load optimization, and thus result in a larger storage footprint.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Balanced&lt;/strong&gt;: Designs that are balanced between database size and query performance.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A fully optimized query has an optimization ratio of 0.99. Optimization ratio is the ratio of a query&#39;s benefits achieved in the design produced by the Database Designer to that achieved in the ideal plan. The optimization ratio is set in the OptRatio parameter in &lt;code&gt;designer.log&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a name=&#34;Design_Tables_with_Sample_Data&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;design-tables&#34;&gt;Design tables&lt;/h2&gt;
&lt;p&gt;Database Designer needs one or more tables with a moderate amount of sample data—approximately 10 GB—to create optimal designs. Design tables with large amounts of data adversely affect Database Designer performance. Design tables with too little data prevent Database Designer from creating an optimized design. If a design table has no data, Database Designer ignores it.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

If you drop a table after adding it to the design, Database Designer cannot build or deploy the design.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a name=&#34;Design_Queries&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;design-queries&#34;&gt;Design queries&lt;/h2&gt;
&lt;p&gt;A database design that is optimized for query performance requires a set of representative queries, or &lt;em&gt;design queries&lt;/em&gt;. Design queries are required for incremental designs, and optional for comprehensive designs. You list design queries in a SQL file that you supply as input to Database Designer. Database Designer checks the validity of the queries when you add them to your design, and again when it builds the design. If a query is invalid, Database Designer ignores it.&lt;/p&gt;
&lt;p&gt;If you use Management Console to create a database design, you can submit queries either from an input file or from the system table &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-monitor-schema/query-requests/#&#34;&gt;QUERY_REQUESTS&lt;/a&gt;. For details, see &lt;a href=&#34;../../../../en/mc/db-management/creating-db-design-mc/creating-design-manually/#&#34;&gt;Creating a design manually&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The maximum number of design queries depends on the design type: ≤200 queries for a comprehensive design, ≤100 queries for an incremental design. Optionally, you can assign weights to the design queries that signify their relative importance. Database Designer uses those weights to prioritize the queries in its design.&lt;/p&gt;
&lt;p&gt;&lt;a name=&#34;Replicated_and_Segmented_Projections&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;segmented-and-unsegmented-projections&#34;&gt;Segmented and unsegmented projections&lt;/h2&gt;
&lt;p&gt;When creating a comprehensive design, Database Designer creates projections based on data statistics and queries. It also reviews the submitted design tables to decide whether projections should be &lt;a href=&#34;../../../../en/admin/projections/segmented-projections/&#34;&gt;segmented&lt;/a&gt; (distributed across the cluster nodes) or &lt;a href=&#34;../../../../en/admin/projections/unsegmented-projections/&#34;&gt;unsegmente&lt;/a&gt;d (replicated on all cluster nodes).&lt;/p&gt;
&lt;p&gt;By default, Database Designer recommends only segmented projections. You can enable Database Designer to recommend unsegmented projections . In this case, Database Designer recommends segmented superprojections for large tables when deploying to multi-node clusters, and unsegmented superprojections for smaller tables.&lt;/p&gt;
&lt;p&gt;Database Designer uses the following algorithm to determine whether to recommend unsegmented projections. Assuming that &lt;em&gt;&lt;code&gt;largest-row-count&lt;/code&gt;&lt;/em&gt; equals the number of rows in the design table with the largest number of rows, Database Designer recommends unsegmented projections if any of the following conditions is true:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;largest-row-count&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&amp;lt; 1,000,000 AND&lt;/code&gt;&lt;em&gt;&lt;code&gt;number-table-rows&lt;/code&gt;&lt;/em&gt;&lt;code&gt;≤&lt;/code&gt;&lt;em&gt;&lt;code&gt;10%-largest-row-count&lt;/code&gt;&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;largest-row-count&lt;/code&gt;&lt;/em&gt;&lt;code&gt;≥ 10,000,000 AND&lt;/code&gt;&lt;em&gt;&lt;code&gt;number-table-rows&lt;/code&gt;&lt;/em&gt;&lt;code&gt;≤&lt;/code&gt;&lt;em&gt;&lt;code&gt;1%-largest-row-count&lt;/code&gt;&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;1,000,000 ≤ &lt;/code&gt;&lt;em&gt;&lt;code&gt;largest-row-count&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&amp;lt; 10,000,000 AND&lt;/code&gt;&lt;em&gt;&lt;code&gt;number-table-rows&lt;/code&gt;&lt;/em&gt;&lt;code&gt; ≤ 100,000&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Database Designer does not segment projections on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Single-node clusters&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;LONG VARCHAR and LONG VARBINARY columns&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For more information, see &lt;a href=&#34;../../../../en/architecture/enterprise-concepts/high-availability-with-projections/#&#34;&gt;High availability with projections&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a name=&#34;Statistics_Analysis&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;statistics-analysis&#34;&gt;Statistics analysis&lt;/h2&gt;
&lt;p&gt;By default, Database Designer analyzes statistics for design tables when they are added to the design. Accurate statistics help Database Designer optimize compression and query performance.&lt;/p&gt;
&lt;p&gt;Analyzing statistics takes time and resources. If you are certain that design table statistics are up to date, you can specify to skip this step and avoid the overhead otherwise incurred.&lt;/p&gt;
&lt;p&gt;For more information, see &lt;a href=&#34;../../../../en/admin/collecting-db-statistics/&#34;&gt;Collecting Statistics&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Building a design</title>
      <link>/en/admin/configuring-db/creating-db-design/building-design/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/building-design/</guid>
      <description>
        
        
        &lt;p&gt;After you have created design tables and loaded data into them, and then specified the parameters you want Database Designer to use when creating the physical schema, direct Database Designer to create the scripts necessary to build the design.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

You cannot stop a running database if Database Designer is building a database design.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;When you build a database design, the database generates two scripts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Deployment script&lt;/strong&gt;: &lt;em&gt;&lt;code&gt;design-name&lt;/code&gt;&lt;/em&gt;_deploy.sql—Contains the SQL statements that create projections for the design you are deploying, deploy the design, and drop unused projections. When the deployment script runs, it creates the optimized design. For details about how to run this script and deploy the design, see &lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/deploying-design/&#34;&gt;Deploying a Design&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Design script&lt;/strong&gt;: &lt;em&gt;&lt;code&gt;design-name&lt;/code&gt;&lt;/em&gt;_design.sql—Contains the &lt;code&gt;CREATE PROJECTION&lt;/code&gt; statements that Database Designeruses to create the design. Review this script to make sure you are happy with the design.&lt;/p&gt;
&lt;p&gt;The design script is a subset of the deployment script. It serves as a backup of the DDL for the projections that the deployment script creates.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;When you create a design using Management Console:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If you submit a large number of queries to your design and build it right immediately, a timing issue could cause the queries not to load before deployment starts. If this occurs, you might see one of the following errors:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;No queries to optimize for&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;No tables to design projections for&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To accommodate this timing issue, you may need to reset the design, check the &lt;strong&gt;Queries&lt;/strong&gt; tab to make sure the queries have been loaded, and then rebuild the design. Detailed instructions are in:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/mc/db-management/creating-db-design-mc/using-wizard-to-create-design/#&#34;&gt;Using the wizard to create a design&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../en/mc/db-management/creating-db-design-mc/creating-design-manually/#&#34;&gt;Creating a design manually&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The scripts are deleted when deployment completes. To save a copy of the deployment script after the design is built but before the deployment completes, go to the &lt;strong&gt;Output&lt;/strong&gt; window and copy and paste the SQL statements to a file.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Resetting a design</title>
      <link>/en/admin/configuring-db/creating-db-design/resetting-design/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/resetting-design/</guid>
      <description>
        
        
        &lt;p&gt;You must reset a design when:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;You build a design and the output scripts described in &lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/building-design/&#34;&gt;Building a Design&lt;/a&gt; are not created.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You build a design but Database Designer cannot complete the design because the queries it expects are not loaded.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Resetting a design discards all the run-specific information of the previous Database Designer build, but retains its configuration (design type, optimization objectives, K-safety, etc.) and tables and queries.&lt;/p&gt;
&lt;p&gt;After you reset a design, review the design to see what changes you need to make. For example, you can fix errors, change parameters, or check for and add additional tables or queries. Then you can rebuild the design.&lt;/p&gt;
&lt;p&gt;You can only reset a design in Management Console or by using the &lt;a href=&#34;../../../../en/sql-reference/functions/db-designer-functions/designer-reset-design/#&#34;&gt;DESIGNER_RESET_DESIGN&lt;/a&gt; function.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Deploying a design</title>
      <link>/en/admin/configuring-db/creating-db-design/deploying-design/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/deploying-design/</guid>
      <description>
        
        
        &lt;p&gt;After running Database Designer to generate a deployment script, it is recommended that you test your design on a non-production server before you deploy it to your production server.&lt;/p&gt;
&lt;p&gt;Both the design and deployment processes run in the background. This is useful if you have a large design that you want to run overnight. Because an active SSH session is not required, the design/deploy operations continue to run uninterrupted, even if the session is terminated.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

You cannot stop a running database if Database Designer is building or deploying a database design.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Database Designer runs as a background process. Multiple users can run Database Designer concurrently without interfering with each other or using up all the cluster resources. However, if multiple users are deploying a design on the same tables at the same time, Database Designer may not be able to complete the deployment. To avoid problems, consider the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Schedule potentially conflicting Database Designer processes to run sequentially overnight so that there are no concurrency problems.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Avoid scheduling Database Designer runs on the same set of tables at the same time.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There are two ways to deploy your design:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/deploying-design/deploying-designs-using-db-designer/&#34;&gt;Deploying Designs Using Database Designer&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/deploying-design/deploying-designs-manually/&#34;&gt;Deploying Designs Manually&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: How to create a design</title>
      <link>/en/admin/configuring-db/creating-db-design/how-to-create-design/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/how-to-create-design/</guid>
      <description>
        
        
        &lt;p&gt;There are three ways to create a design using Database Designer:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;From Management Console, open a database and select the &lt;strong&gt;Design&lt;/strong&gt; page at the bottom of the window.&lt;/p&gt;
&lt;p&gt;For details about using Management Console to create a design, see &lt;a href=&#34;../../../../en/mc/db-management/creating-db-design-mc/#&#34;&gt;Creating a database design in Management Console&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Programmatically, using the techniques described in &lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/running-db-designer-programmatically/&#34;&gt;About Running Database Designer Programmatically&lt;/a&gt;. To run Database Designer programmatically, you must be a &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/db-users/types-of-db-users/db-admin-user/&#34;&gt;DBADMIN&lt;/a&gt; or have been granted the &lt;a href=&#34;../../../../en/admin/db-users-and-privileges/db-roles/predefined-db-roles/dbduser/&#34;&gt;DBDUSER&lt;/a&gt; role and enabled that role.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;From the Administration Tools menu, by selecting &lt;strong&gt;Configuration Menu &amp;gt; Run Database Designer&lt;/strong&gt;. You must be a DBADMIN user to run Database Designer from the Administration Tools.&lt;/p&gt;
&lt;p&gt;For details about using Administration Tools to create a design, see &lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/how-to-create-design/using-admin-tools-to-create-design/#&#34;&gt;Using administration tools to create a design&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following table shows what Database Designer capabilities are available in each tool:

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Database Designer Capability&lt;/th&gt; 

&lt;th &gt;
Management Console&lt;/th&gt; 

&lt;th &gt;
Running Database Designer Programmatically&lt;/th&gt; 

&lt;th &gt;
Administrative Tools&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Create design&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Design name length (# of characters)&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
16&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
32&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
16&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Build design (create design and deployment scripts)&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Create backup script&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Set design type (comprehensive or incremental)&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Set optimization objective&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Add design tables&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Add design queries file&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Add single design query&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Use query repository&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Set K-safety&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Analyze statistics&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Require all unsegmented projections&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
View event history&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
Set correlation analysis mode (Default = 0)&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
Yes&lt;/td&gt; 


&lt;td  class=&#34;hcenter&#34; &gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Running Database Designer programmatically</title>
      <link>/en/admin/configuring-db/creating-db-design/running-db-designer-programmatically/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/running-db-designer-programmatically/</guid>
      <description>
        
        
        &lt;p&gt;The database provides a set of meta-functions that enable programmatic access to Database Designer functionality. Run Database Designer programmatically to perform the following tasks:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Optimize performance on tables that you own.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create or update a design without requiring superuser or DBADMIN intervention.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add individual queries and tables, or add data to your design, and then rerun Database Designer to update the design based on this new information.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Customize the design.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use recently executed queries to set up your database to run Database Designer automatically on a regular basis.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Assign each design query a &lt;em&gt;query weight&lt;/em&gt; that indicates the importance of that query in creating the design. Assign a higher weight to queries that you run frequently so that Database Designer prioritizes those queries in creating the design.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For more details about Database Designer functions, see &lt;a href=&#34;../../../../en/admin/configuring-db/creating-db-design/running-db-designer-programmatically/db-designer-function-categories/#&#34;&gt;Database Designer function categories&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Creating custom designs</title>
      <link>/en/admin/configuring-db/creating-db-design/creating-custom-designs/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/creating-custom-designs/</guid>
      <description>
        
        
        &lt;p&gt;It is recommended that you use the physical schema design produced by &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/db-designer/&#34; title=&#34;A tool that analyzes a logical schema definition, sample queries, and sample data, and creates a physical schema () in the form of a SQL script that you deploy automatically or manually.&#34;&gt;Database Designer&lt;/a&gt;, which provides &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/k-safety/&#34; title=&#34;For more information, see Designing for K-Safety.&#34;&gt;K-safety&lt;/a&gt;, excellent query performance, and efficient use of storage space. If any queries run less as efficiently than you expect, consider using the Database Designer incremental design process to optimize the database design for the query.&lt;/p&gt;
&lt;p&gt;If the projections created by Database Designer still do not meet your needs, you can write custom projections, from scratch or based on projection designs created by Database Designer.&lt;/p&gt;
&lt;p&gt;If you are unfamiliar with writing custom projections, start by modifying an existing design generated by Database Designer.&lt;/p&gt;

      </description>
    </item>
    
  </channel>
</rss>
