<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Planning your design</title>
    <link>/en/admin/configuring-db/creating-db-design/creating-custom-designs/planning-your-design/</link>
    <description>Recent content in Planning your design on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/admin/configuring-db/creating-db-design/creating-custom-designs/planning-your-design/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Admin: Design requirements</title>
      <link>/en/admin/configuring-db/creating-db-design/creating-custom-designs/planning-your-design/design-requirements/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/creating-custom-designs/planning-your-design/design-requirements/</guid>
      <description>
        
        
        &lt;p&gt;A physical schema design is a script that contains CREATE PROJECTION statements. These statements determine which columns are included in projections and how they are optimized.&lt;/p&gt;
&lt;p&gt;If you use Database Designer as a starting point, it automatically creates designs that meet all fundamental design requirements. If you intend to create or modify designs manually, be aware that all designs must meet the following requirements:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Every design must create at least one superprojection for every table in the database that is used by the client application. These projections provide complete coverage that enables users to perform ad-hoc queries as needed. They can contain joins and they are usually configured to maximize performance through sort order, compression, and encoding.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Query-specific projections are optional. If you are satisfied with the performance provided through superprojections, you do not need to create additional projections. However, you can maximize performance by tuning for specific query work loads.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It is recommended that all production databases have a minimum K-safety of one (K=1) to support high availability and recovery. (K-safety can be set to 0, 1, or 2.) See &lt;a href=&#34;../../../../../../en/architecture/enterprise-concepts/high-availability-with-projections/#&#34;&gt;High availability with projections&lt;/a&gt; and &lt;a href=&#34;../../../../../../en/admin/configuring-db/creating-db-design/creating-custom-designs/planning-your-design/designing-k-safety/#&#34;&gt;Designing for K-safety&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you have more than 20 nodes with small tables, it is recommended that you do not create replicated projections. If you create replicated projections, the catalog becomes very large and performance may degrade. Instead, consider segmenting those projections.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Determining the number of projections to use</title>
      <link>/en/admin/configuring-db/creating-db-design/creating-custom-designs/planning-your-design/determining-number-of-projections-to-use/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/creating-custom-designs/planning-your-design/determining-number-of-projections-to-use/</guid>
      <description>
        
        
        &lt;p&gt;In many cases, a design that consists of a set of superprojections (and their buddies) provides satisfactory performance through compression and encoding. This is especially true if the sort orders for the projections have been used to maximize performance for one or more query predicates (WHERE clauses).&lt;/p&gt;
&lt;p&gt;However, you might want to add additional query-specific projections to increase the performance of queries that run slowly, are used frequently, or are run as part of business-critical reporting. The number of additional projections (and their buddies) that you create should be determined by:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Your organization&#39;s needs&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The amount of disk space you have available on each node in the cluster&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The amount of time available for loading data into the database&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As the number of projections that are tuned for specific queries increases, the performance of these queries improves. However, the amount of disk space used and the amount of time required to load data increases as well. Therefore, you should create and test designs to determine the optimum number of projections for your database configuration. On average, organizations that choose to implement query-specific projections achieve optimal performance through the addition of a few query-specific projections.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Designing for K-safety</title>
      <link>/en/admin/configuring-db/creating-db-design/creating-custom-designs/planning-your-design/designing-k-safety/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/creating-custom-designs/planning-your-design/designing-k-safety/</guid>
      <description>
        
        
        &lt;p&gt;It is recommended that all production databases have a minimum K-safety of one (K=1). Valid K-safety values for production databases are 1 and 2. Non-production databases do not have to be K-safe and can be set to 0.&lt;/p&gt;
&lt;p&gt;A K-safe database must have at least three nodes, as shown in the following table:

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



&lt;tr&gt; 

&lt;th &gt;
K-safety level&lt;/th&gt; 

&lt;th &gt;
Number of required nodes&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


1&lt;/td&gt; 

&lt;td &gt;


3+&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


2&lt;/td&gt; 

&lt;td &gt;


5+&lt;/td&gt;&lt;/tr&gt;&lt;/table&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;

OpenText™ Analytics Database supports K-safety levels 1 and 2 only.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;You can set K-safety to 1 or 2 only when the physical schema design meets certain redundancy requirements. See &lt;a href=&#34;../../../../../../en/admin/configuring-db/creating-db-design/creating-custom-designs/planning-your-design/designing-k-safety/requirements-k-safe-physical-schema-design/#&#34;&gt;Requirements for a K-safe physical schema design&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;using-database-designer&#34;&gt;Using Database Designer&lt;/h2&gt;
&lt;p&gt;To create designs that are K-safe, it is recommended that you use the &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;. When creating projections with Database Designer, projection definitions that meet K-safe design requirements are recommended and marked with a K-safety level. Database Designer creates a script that uses the 
&lt;code&gt;&lt;a href=&#34;../../../../../../en/sql-reference/functions/management-functions/catalog-functions/mark-design-ksafe/#&#34;&gt;MARK_DESIGN_KSAFE&lt;/a&gt;&lt;/code&gt; function to set the K-safety of the physical schema to 1. For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; \i VMart_Schema_design_opt_1.sql
CREATE PROJECTION
CREATE PROJECTION
mark_design_ksafe
----------------------
Marked design 1-safe
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;By default, the database creates K-safe superprojections when database K-safety is greater than 0.&lt;/p&gt;
&lt;h2 id=&#34;monitoring-k-safety&#34;&gt;Monitoring K-safety&lt;/h2&gt;
&lt;p&gt;Monitoring tables can be accessed programmatically to enable external actions, such as alerts. You monitor the K-safety level by querying the 
&lt;code&gt;&lt;a href=&#34;../../../../../../en/sql-reference/system-tables/v-monitor-schema/system/#&#34;&gt;SYSTEM&lt;/a&gt;&lt;/code&gt; table for settings in columns &lt;code&gt;DESIGNED_FAULT_TOLERANCE&lt;/code&gt; and &lt;code&gt;CURRENT_FAULT_TOLERANCE&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;loss-of-k-safety&#34;&gt;Loss of K-safety&lt;/h2&gt;
&lt;p&gt;When K nodes in your cluster fail, your database continues to run, although performance is affected. Further node failures could potentially cause the database to shut down if the failed node&#39;s data is not available from another functioning node in the cluster.&lt;/p&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../../../en/architecture/enterprise-concepts/k-safety-an-enterprise-db/#&#34;&gt;K-safety in an Enterprise Mode database&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Designing for segmentation</title>
      <link>/en/admin/configuring-db/creating-db-design/creating-custom-designs/planning-your-design/designing-segmentation/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/configuring-db/creating-db-design/creating-custom-designs/planning-your-design/designing-segmentation/</guid>
      <description>
        
        
        &lt;p&gt;You segment projections using hash segmentation. Hash segmentation allows you to segment a projection based on a built-in hash function that provides even distribution of data across multiple nodes, resulting in optimal query execution. In a projection, the data to be hashed consists of one or more column values, each having a large number of unique values and an acceptable amount of skew in the value distribution. Primary key columns that meet the criteria could be an excellent choice for hash segmentation.

&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;

For detailed information about using hash segmentation in a projection, see &lt;a href=&#34;../../../../../../en/sql-reference/statements/create-statements/create-projection/#&#34;&gt;CREATE PROJECTION&lt;/a&gt; in the SQL Reference Manual.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;When segmenting projections, determine which columns to use to segment the projection. Choose one or more columns that have a large number of unique data values and acceptable skew in their data distribution. Primary key columns are an excellent choice for hash segmentation. The columns must be unique across all the tables being used in a query.&lt;/p&gt;

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