]> git.donarmstrong.com Git - dbsnp.git/blobdiff - schema/shared_schema/dbSNP_main_index.sql
update to build 135 schema
[dbsnp.git] / schema / shared_schema / dbSNP_main_index.sql
index 7586c54eaa51a8919fc0a2d5fd8b6a708e1f951b..5040d46d192684cb410027a057575c5877de6a43 100644 (file)
@@ -1,24 +1,19 @@
- CREATE  UNIQUE  INDEX [i_allele] ON [Allele]([allele])
+CREATE NONCLUSTERED INDEX [i_allele] ON [Allele] ([allele] ASC)\r
 GO
-
- CREATE  INDEX [i_rev_allele_id] ON [Allele]([rev_allele_id])
+CREATE NONCLUSTERED INDEX [i_rev_allele_id] ON [Allele] ([rev_allele_id] ASC)\r
 GO
 
 
-
- CREATE  INDEX [i_motif] ON [AlleleMotif]([motif_id])
+CREATE NONCLUSTERED INDEX [i_motif] ON [AlleleMotif] ([motif_id] ASC)\r
 GO
 
-
- CREATE  UNIQUE  CLUSTERED  INDEX [ind_AllocIds_name] ON [AllocIds]([name])
+CREATE CLUSTERED INDEX [ind_AllocIds_name] ON [AllocIds] ([name] ASC)\r
 GO
 
-
- CREATE  INDEX [i_auth] ON [Author]([author])
+CREATE NONCLUSTERED INDEX [i_auth] ON [Author] ([author] ASC)\r
 GO
 
-
- CREATE  UNIQUE  CLUSTERED  INDEX [i_ss] ON [Batch_tax_id]([batch_id])
+CREATE CLUSTERED INDEX [i_ss] ON [Batch_tax_id] ([batch_id] ASC)\r
 GO
 
 
@@ -26,129 +21,98 @@ GO
 
 
 
-
- CREATE  INDEX [i_unigty] ON [GtyAllele]([unigty_id])
+CREATE NONCLUSTERED INDEX [i_unigty] ON [GtyAllele] ([unigty_id] ASC)\r
 GO
-
- CREATE  INDEX [gty_id_idx] ON [GtyAllele]([gty_id])
+CREATE NONCLUSTERED INDEX [gty_id_idx] ON [GtyAllele] ([gty_id] ASC)\r
 GO
-
- CREATE  INDEX [i_gty_id] ON [GtyAllele]([gty_id])
+CREATE NONCLUSTERED INDEX [i_gty_id] ON [GtyAllele] ([gty_id] ASC)\r
 GO
 
 
-
- CREATE  INDEX [i_loaddate] ON [LoadHistory]([loaddate])
+CREATE NONCLUSTERED INDEX [i_loaddate] ON [LoadHistory] ([loaddate] ASC)\r
 GO
 
 
 
-
- CREATE  UNIQUE  INDEX [i_handle_loc_method_id] ON [Method]([handle], [loc_method_id])
+CREATE NONCLUSTERED INDEX [i_handle_loc_method_id] ON [Method] ([handle] ASC,[loc_method_id] ASC)\r
 GO
 
 
 
 
-
- CREATE  UNIQUE  INDEX [i_motif] ON [Motif]([motif])
+CREATE NONCLUSTERED INDEX [i_motif] ON [Motif] ([motif] ASC)\r
 GO
 
-
- CREATE  INDEX [i_obs] ON [ObsGenotype]([obs])
+CREATE NONCLUSTERED INDEX [i_obs] ON [ObsGenotype] ([obs] ASC)\r
 GO
-
- CREATE  INDEX [i_obs_upp_fix] ON [ObsGenotype]([obs_upp_fix])
+CREATE NONCLUSTERED INDEX [i_obs_upp_fix] ON [ObsGenotype] ([obs_upp_fix] ASC)\r
 GO
-
- CREATE  INDEX [i_gty_id] ON [ObsGenotype]([gty_id])
+CREATE NONCLUSTERED INDEX [i_gty_id] ON [ObsGenotype] ([gty_id] ASC)\r
 GO
 
-
- CREATE  UNIQUE  INDEX [i_pattern] ON [ObsVariation]([pattern])
+CREATE NONCLUSTERED INDEX [i_pattern] ON [ObsVariation] ([pattern] ASC)\r
 GO
-
- CREATE  INDEX [i_univar] ON [ObsVariation]([univar_id])
+CREATE NONCLUSTERED INDEX [i_univar] ON [ObsVariation] ([univar_id] ASC)\r
 GO
 
 
-
- CREATE  UNIQUE  CLUSTERED  INDEX [iuc_OrganismTax] ON [OrganismTax]([organism])
+CREATE CLUSTERED INDEX [iuc_OrganismTax] ON [OrganismTax] ([organism] ASC)\r
 GO
-
- CREATE  INDEX [i_tax_id] ON [OrganismTax]([tax_id])
+CREATE NONCLUSTERED INDEX [i_tax_id] ON [OrganismTax] ([tax_id] ASC)\r
 GO
-
- CREATE  INDEX [i_sp_tax] ON [OrganismTax]([species_tax_id])
+CREATE NONCLUSTERED INDEX [i_sp_tax] ON [OrganismTax] ([species_tax_id] ASC)\r
 GO
-
- CREATE  INDEX [i_dbname] ON [OrganismTax]([database_name])
+CREATE NONCLUSTERED INDEX [i_dbname] ON [OrganismTax] ([database_name] ASC)\r
 GO
 
 
 
-
- CREATE  UNIQUE  CLUSTERED  INDEX [i_handle_title] ON [Publication]([handle], [title])
+CREATE CLUSTERED INDEX [i_handle_title] ON [Publication] ([handle] ASC,[title] ASC)\r
 GO
 
 
-
- CREATE  INDEX [i_tax_id] ON [SNP_tax_id]([tax_id], [snp_id])
+CREATE NONCLUSTERED INDEX [i_tax_id] ON [SNP_tax_id] ([tax_id] ASC,[snp_id] ASC)\r
 GO
 
 
 
 
-
- CREATE  UNIQUE  CLUSTERED  INDEX [i_code] ON [SnpValidationCode]([code])
+CREATE CLUSTERED INDEX [i_code] ON [SnpValidationCode] ([code] ASC)\r
 GO
 
-
- CREATE  INDEX [i_abbrev_orien] ON [StrandCode]([abbrev], [rs_to_ss_orien], [code])
+CREATE NONCLUSTERED INDEX [i_abbrev_orien] ON [StrandCode] ([abbrev] ASC,[rs_to_ss_orien] ASC,[code] ASC)\r
 GO
 
-
- CREATE  UNIQUE  CLUSTERED  INDEX [i_comment_id] ON [SubSNPDelComm]([comment_id])
+CREATE CLUSTERED INDEX [i_comment_id] ON [SubSNPDelComm] ([comment_id] ASC)\r
 GO
 
 
-
- CREATE  UNIQUE  CLUSTERED  INDEX [iuc_Submitter] ON [Submitter]([handle])
+CREATE CLUSTERED INDEX [iuc_Submitter] ON [Submitter] ([handle] ASC)\r
 GO
-
- CREATE  INDEX [ic_Submitter] ON [Submitter]([name])
+CREATE NONCLUSTERED INDEX [ic_Submitter] ON [Submitter] ([name] ASC)\r
 GO
 
 
-
- CREATE  UNIQUE  INDEX [i_u_gty_str] ON [UniGty]([gty_str])
+CREATE NONCLUSTERED INDEX [i_u_gty_str] ON [UniGty] ([gty_str] ASC)\r
 GO
-
- CREATE  UNIQUE  INDEX [i_u_allele_ids] ON [UniGty]([allele_id_1], [allele_id_2])
+CREATE NONCLUSTERED INDEX [i_u_allele_ids] ON [UniGty] ([allele_id_1] ASC,[allele_id_2] ASC)\r
 GO
-
- CREATE  INDEX [i_allele_id_2] ON [UniGty]([allele_id_2])
+CREATE NONCLUSTERED INDEX [i_allele_id_2] ON [UniGty] ([allele_id_2] ASC)\r
 GO
 
-
- CREATE  INDEX [i_allele_id] ON [UniVariAllele]([allele_id])
+CREATE NONCLUSTERED INDEX [i_allele_id] ON [UniVariAllele] ([allele_id] ASC)\r
 GO
 
-
- CREATE  UNIQUE  INDEX [i_u_var_str] ON [UniVariation]([var_str])
+CREATE NONCLUSTERED INDEX [i_u_var_str] ON [UniVariation] ([var_str] ASC)\r
 GO
-
- CREATE  INDEX [cv_uvid_class] ON [UniVariation]([univar_id], [subsnp_class])
+CREATE NONCLUSTERED INDEX [cv_uvid_class] ON [UniVariation] ([univar_id] ASC,[subsnp_class] ASC)\r
 GO
 
 
-
- CREATE  INDEX [i_allele_id] ON [VariAllele]([allele_id])
+CREATE NONCLUSTERED INDEX [i_allele_id] ON [VariAllele] ([allele_id] ASC)\r
 GO
 
 
- CREATE  UNIQUE  INDEX [i_u] ON [db_DataDictionaryNew]([tab], [col_order])
-GO
 
 
 
@@ -156,11 +120,7 @@ GO
 
 
 
-
-
-
- CREATE  UNIQUE  CLUSTERED  INDEX [i_gty] ON [dn_gty2unigty_trueSNP]([gty_id], [rev_flag])
+CREATE CLUSTERED INDEX [i_gty] ON [dn_gty2unigty_trueSNP] ([gty_id] ASC,[rev_flag] ASC)\r
 GO
 
 
-