Friday 14 July 2017

Valores Em Movimento Média Sem Armazenamento


A maioria das pessoas está familiarizada com a frase, isso vai matar dois pássaros com uma pedra. Se você não estiver, a fase se refere a uma abordagem que aborda dois objetivos em uma ação. (Infelizmente, a expressão em si é bastante desagradável, como a maioria de nós não deseja lançar pedras em animais inocentes). Hoje, I39m vai abranger alguns conceitos básicos em dois grandes recursos no SQL Server: o índice Columnstore (disponível apenas no SQL Server Enterprise) e O SQL Query Store. A Microsoft realmente implementou o índice Columnstore no SQL 2012 Enterprise, embora eles o aprimorem nos últimos dois lançamentos do SQL Server. A Microsoft apresentou o Query Store no SQL Server 2016. Então, quais são esses recursos e por que eles são importantes? Bem, eu tenho um demo que irá apresentar os dois recursos e mostrar como eles podem nos ajudar. Antes de ir mais longe, também cubro esse (e outros recursos do SQL 2016) no meu artigo da revista CODE sobre os novos recursos SQL 2016. Como uma introdução básica, o índice Columnstore pode ajudar a acelerar as consultas que exploram as quantidades de grandes quantidades de dados e A Query Store rastreia as execuções de consultas, os planos de execução e as estatísticas de tempo de execução que você normalmente precisa colecionar manualmente. Confie em mim quando eu digo, são excelentes recursos. Para esta demo, eu estarei usando o banco de dados de demonstração do Microsoft Contoso Retail Data Warehouse. Falando vagamente, o Contoso DW é como uma quota muito grande AdventureWorksquot, com tabelas contendo milhões de linhas. (A maior tabela AdventureWorks contém aproximadamente 100.000 linhas no máximo). Você pode baixar o banco de dados do Contoso DW aqui: microsoften-usdownloaddetails. aspxid18279. O Contoso DW funciona muito bem quando você deseja testar desempenho em consultas contra tabelas maiores. O Contoso DW contém uma tabela de fatos de data warehouse padrão chamada FactOnLineSales, com 12,6 milhões de linhas. Certamente, essa não é a maior mesa de armazenamento de dados do mundo, mas também não é uma criança. Suponha que eu quero resumir o valor das vendas do produto para 2009 e classificar os produtos. Eu posso consultar a tabela de fatos e juntar-se à tabela Dimensão do produto e usar uma função RANK, assim: Aqui, um conjunto de resultados parcial das 10 melhores linhas, por Total Sales. No meu laptop (i7, 16 GB de RAM), a consulta leva entre 3-4 segundos para ser executada. Isso pode não parecer o fim do mundo, mas alguns usuários podem esperar resultados quase instantâneos (da maneira que você pode ver resultados quase instantâneos ao usar o Excel contra um cubo OLAP). O único índice que eu atualmente tenho nesta tabela é um índice agrupado em uma chave de vendas. Se eu olhar para o plano de execução, o SQL Server faz uma sugestão para adicionar um índice de cobertura para a tabela: agora, só porque o SQL Server sugere um índice, não significa que você deve criar índices cegamente em todas as mensagens de indexação quotmissing. No entanto, nessa instância, o SQL Server detecta que estamos filtrando com base no ano e usando a chave de produto e a quantidade de vendas. Assim, o SQL Server sugere um índice de cobertura, com o DateKey como o campo da chave de índice. A razão pela qual chamamos isso de quotcoveringquot index é porque o SQL Server irá recorrer ao longo dos campos não-chave que usamos na consulta, quanto ao ridequot. Dessa forma, o SQL Server não precisa usar a tabela ou o índice em cluster em todo o mecanismo do banco de dados pode simplesmente usar o índice de cobertura para a consulta. Os índices de cobertura são populares em determinados cenários de banco de dados de dados e relatórios, embora eles tenham um custo do mecanismo de banco de dados, mantendo-os. Nota: Os índices de cobertura foram durante muito tempo, então eu ainda não abordava o índice Columnstore e a Query Store. Então, vou adicionar o índice de cobertura: se eu re-executar a mesma consulta que corri um momento (o que agregou o valor das vendas para cada produto), a consulta às vezes parece executar cerca de um segundo mais rápido e recebo uma Plano de execução diferente, que usa uma pesquisa de índice em vez de uma verificação de índice (usando a chave de data no índice de cobertura para recuperar vendas para 2009). Portanto, antes do Índice Columnstore, isso poderia ser uma maneira de otimizar essa consulta em versões muito antigas do SQL Server. Ele é executado um pouco mais rápido do que o primeiro, e eu recebo um plano de execução com um Index Seek em vez de um Index Scan. No entanto, existem alguns problemas: os dois operadores de execução, quotIndex Seekquot e quotHash Match (Aggregate), ambos operam essencialmente quotrow by rowquot. Imagine isso em uma mesa com centenas de milhões de linhas. Relacionado, pense no conteúdo de uma tabela de fatos: neste caso, um valor de chave de data único e um valor de chave de produto único podem ser repetidos em centenas de milhares de linhas (lembre-se, a tabela de fato também possui chaves para geografia, promoção, vendedor , Etc.) Então, quando o quotIndex Seekquot e quotHash Matchquot funcionam por linha, eles estão fazendo isso sobre valores que podem ser repetidos em muitas outras linhas. Normalmente, esse é o caso do I39d segue para o índice SQL Server Columnstore, que oferece um cenário para melhorar o desempenho desta consulta de maneiras surpreendentes. Mas antes que eu faça isso, let39s voltem no tempo. Let39s voltam para o ano de 2010, quando a Microsoft apresentou um suplemento para o Excel conhecido como PowerPivot. Muitas pessoas provavelmente se lembravam de mostrar demonstrações do PowerPivot para Excel, onde um usuário poderia ler milhões de linhas de uma fonte de dados externa para o Excel. O PowerPivot comprimiria os dados e forneceria um mecanismo para criar tabelas dinâmicas e gráficos dinâmicos que funcionavam a velocidades surpreendentes contra os dados compactados. O PowerPivot usou uma tecnologia em memória que a Microsoft denominou quotVertiPaqquot. Esta tecnologia em memória no PowerPivot basicamente levaria valores de chave de chave de negócios duplicados e comprimi-los para um único vetor. A tecnologia em memória também digitalizaria esses valores em paralelo, em blocos de várias centenas por vez. A linha inferior é que a Microsoft assustou uma grande quantidade de aprimoramentos de desempenho no recurso VertiPaq em memória para uso, à direita da caixa proverbial. Por que estou tirando esse pequeno passeio pela linha de memória Porque, no SQL Server 2012, a Microsoft implementou uma das características mais importantes no histórico de seu mecanismo de banco de dados: o índice Columnstore. O índice é apenas um índice apenas em nome: é uma maneira de tomar uma tabela do SQL Server e criar uma barra de colunas comprimida na memória que comprime os valores das chaves estrangeiras duplicadas para valores vetoriais únicos. A Microsoft também criou um novo conjunto de buffer para ler esses valores de vetores compactados em paralelo, criando o potencial de ganhos de desempenho enormes. Então, eu vou criar um índice de armazenamento de colunas na tabela, e eu verá o quanto melhor (e mais eficientemente) a consulta é executada, em relação à consulta que é executada contra o índice de cobertura. Então, eu criei uma cópia duplicada do FactOnlineSales (I39ll chamá-lo de FactOnlineSalesDetailNCCS), e I39ll crie um índice de armazenamento de colunas na tabela duplicada dessa maneira eu não interfiro com a tabela original e o índice de cobertura de qualquer maneira. Em seguida, eu crie um índice de armazenamento de colunas na nova tabela: Observe várias coisas: I39ve especificou várias colunas de chave estrangeiras, bem como a quantidade de vendas. Lembre-se de que um índice de armazenamento de colunas não é como um índice de linha-loja tradicional. Não há quotkeyquot. Estamos simplesmente indicando quais colunas o SQL Server deve comprimir e colocar em uma pasta de colunas na memória. Para usar a analogia do PowerPivot para o Excel quando criamos um índice de armazenamento de colunas, nós pedimos ao SQL Server que faça essencialmente o mesmo que o PowerPivot fez quando importámos 20 milhões de linhas para o Excel usando o PowerPivot Então, I39ll re-execute a consulta, desta vez usando A tabela duvidosa FactOnlineSalesDetailNCCS que contém o índice columnstore. Essa consulta é executada instantaneamente em menos de um segundo. E eu também posso dizer que, mesmo que a mesa tivesse centenas de milhões de linhas, ainda funcionaria no quotbat proverbial de um eyelashquot. Podemos olhar para o plano de execução (e em alguns momentos, vamos), mas agora é o momento de cobrir o recurso da Loja de consultas. Imagine por um momento, que executamos ambas as consultas durante a noite: a consulta que usou a tabela regular FactOnlineSales (com o índice de cobertura) e a consulta que usou a tabela duplicada com o índice Columnstore. Quando nos efetuamos o login na manhã seguinte, gostaríamos de ver o plano de execução para ambas as consultas, assim como as estatísticas de execução. Em outras palavras, gostaríamos de ver as mesmas estatísticas que poderíamos ver se executássemos ambas as consultas de forma interativa no SQL Management Studio, ativadas em TIME e IO Statistics, e visualizamos o plano de execução logo após a execução da consulta. Bem, isso é o que a Query Store nos permite fazer, podemos ativar (habilitar) o Query Store para um banco de dados, que irá acionar o SQL Server para armazenar a execução da consulta e planejar as estatísticas para que possamos visualizá-las mais tarde. Então, eu vou habilitar a Query Store no banco de dados Contoso com o seguinte comando (e I39ll também limpar qualquer cache): Então I39ll executar as duas consultas (e quotpretendquot que eu as executei há horas atrás): Agora vamos fingir que eles funcionaram horas atrás. De acordo com o que eu disse, a Query Store irá capturar as estatísticas de execução. Então, como eu os vejo Felizmente, isso é bastante fácil. Se eu expandir o banco de dados Contoso DW, I39ll verá uma pasta Query Store. A Query Store tem uma tremenda funcionalidade e tentei cobrir uma grande parte disso em postagens de blog subseqüentes. Mas por agora, eu quero ver estatísticas de execução nas duas consultas e examinar especificamente os operadores de execução para o índice de armazenamento de colunas. Então, eu vou clicar com o botão direito no Top Resource Consuming Queries e executar essa opção. Isso me dá um gráfico como o abaixo, onde posso ver o tempo de duração da execução (em milissegundos) para todas as consultas que foram executadas. Nessa instância, a Query 1 foi a consulta contra a tabela original com o índice de cobrança e o Query 2 foi contra a tabela com o índice de armazenamento de colunas. Os números que não são o índice de armazenamento de colunas superaram o índice de cobertura de tabela original por um fator de quase 7 a 1. Eu posso mudar a métrica para ver o consumo de memória. Nesse caso, observe que a consulta 2 (a consulta do índice de armazenamento de colunas) usou muito mais memória. Isso demonstra claramente por que o índice columnstore representa a tecnologia quotin-memoryquot. O SQL Server carrega todo o índice de armazenamento de colunas na memória e usa um pool de buffer completamente diferente com operadores de execução aprimorados para processar o índice. OK, então temos alguns gráficos para ver as estatísticas de execução, podemos ver o plano de execução (e os operadores de execução) associados a cada execução Sim, podemos se você clicar na barra vertical para a consulta que usou o índice columnstore, você verá a execução Plano abaixo. A primeira coisa que vemos é que o SQL Server realizou uma verificação de índice de armazenamento de colunas, e isso representou quase 100 do custo da consulta. Você pode estar dizendo, por um minuto, a primeira consulta usou um índice de cobertura e realizou um índice de busca, então, como uma verificação do índice de armazenamento de colunas pode ser mais rápida. Essa é uma questão legítima e, felizmente, isso é uma resposta. Mesmo quando a primeira consulta realizou um índice de busca, ele ainda executou quotrow by rowquot. Se eu colocar o mouse sobre o operador de varredura do índice de lojas de colunas, vejo uma dica de ferramenta (como a abaixo), com uma configuração importante: o Modo de Execução é BATCH (em oposição a ROW.) O que nós tivemos com a primeira consulta usando o Índice de cobertura). Esse modo BATCH nos diz que o SQL Server está processando os vetores compactados (para quaisquer valores de chave estrangeiros duplicados, como a chave do produto e a chave da data) em lotes de quase 1.000, em paralelo. Portanto, o SQL Server ainda é capaz de processar o índice columnstore muito mais eficientemente. Além disso, se eu colocar o mouse sobre a tarefa Hash Match (Aggregate), também vejo que o SQL Server está agregando o índice de armazenamento de colunas usando o modo Batch (embora o próprio operador represente uma porcentagem tão pequena do custo da consulta). Finalmente, você Pode estar perguntando, quotOK, então o SQL Server comprime os valores nos dados, trata os valores como vetores e lê-los em blocos de quase mil valores em paralelo, mas minha consulta só queria dados para 2009. Portanto, o SQL Server está escaneando o Conjunto completo de dados. Mais uma vez, uma boa pergunta. A resposta é, quase não. Felizmente para nós, o novo pool de buffer de índice de colunas executa outra função chamada quotsegment eliminationquot. Basicamente, o SQL Server examinará os valores vetoriais da coluna da chave da data no índice do armazenamento de colunas e eliminará os segmentos que estão fora do escopo do ano de 2009. I39ll pararão aqui. Nas postagens de blog subseqüentes, eu abrico tanto o índice de armazenamento de colunas quanto o Query Store com mais detalhes. Essencialmente, o que vimos aqui hoje é que o índice Columnstore pode acelerar significativamente as consultas que exploram em grande quantidade de dados e a Query Store irá capturar execuções de consultas e nos permitir examinar as estatísticas de execução e desempenho mais tarde. No final, gostaríamos de produzir um conjunto de resultados que mostra o seguinte. Observe três coisas: as colunas rotulam essencialmente todos os possíveis Razões de retorno, depois de mostrar o valor das vendas. O conjunto de resultados contém subtotais na semana (Domingo) em todos os clientes (onde o Cliente é Nulo). O conjunto de resultados contém um total geral Linha (onde o Cliente e a Data são ambos NULL) Primeiro, antes de entrar no fim do SQL, poderíamos usar a capacidade de pivô dinâmico dinâmico no SSRS. Nós simplesmente precisamos combinar os dois conjuntos de resultados por uma coluna e então poderemos alimentar os resultados para o controle da matriz SSRS, que irá espalhar os motivos de retorno no eixo das colunas do relatório. No entanto, nem todos usam SSRS (embora a maioria das pessoas deveria). Mas, mesmo assim, às vezes, os desenvolvedores precisam consumir conjuntos de resultados em algo diferente de uma ferramenta de relatórios. Então, para este exemplo, vamos assumir que queremos gerar o conjunto de resultados para uma página de grade da web e, possivelmente, o desenvolvedor quer quotst out outar as linhas do subtotal (onde eu tenho um valor ResultSetNum de 2 e 3) e colocá-los em uma grade de resumo. Então, a linha inferior, precisamos gerar a saída acima diretamente de um procedimento armazenado. E como um toque adicional na próxima semana, poderia haver Return Raison X e Y e Z. Então, não sabemos quantos motivos de retorno podem existir. Nós simplesmente queremos que a consulta pivote sobre os possíveis valores distintos para Return Rason. Aqui é onde o PIVOT T-SQL tem uma restrição que precisamos fornecer os valores possíveis. Uma vez que ganhamos, sabemos que até o tempo de execução, precisamos gerar a seqüência de consulta dinamicamente usando o padrão SQL dinâmico. O padrão SQL dinâmico envolve a geração da sintaxe, peça por peça, armazenando-a em uma string e, em seguida, executando a string no final. SQL dinâmico pode ser complicado, pois temos que incorporar sintaxe dentro de uma string. Mas, neste caso, é nossa única opção verdadeira se quisermos lidar com um número variável de razões de retorno. Eu sempre achei que a melhor maneira de criar uma solução SQL dinâmica é descobrir o que a consulta gerada quotidealquot seria no final (neste caso, dados os motivos de Retorno que conhecemos). E, em seguida, englobá-la de modo inverso Juntamente, uma parte por vez. E então, aqui é o SQL que precisamos se soubéssemos que os Razões de Retorno (A a D) eram estáticas e não mudariam. A consulta faz o seguinte: Combina os dados do SalesData com os dados de ReturnData, onde fazemos quot-wirequot a palavra Vendas como um Tipo de Ação da Tabela de Vendas e, em seguida, usamos o Razão de Retorno dos Dados de Retorno na mesma coluna do ActionType. Isso nos dará uma coluna ActionType limpa sobre a qual podermos girar. Estamos combinando as duas instruções SELECT em uma expressão de tabela comum (CTE), que é basicamente uma subconsulta de tabela derivada que posteriormente usamos na próxima declaração (para PIVOT) Uma declaração PIVOT contra o CTE, que resume os dólares para o Tipo de Ação Estar em um dos possíveis valores do tipo de ação. Observe que este não é o conjunto de resultados final. Estamos colocando isso em um CTE que lê do primeiro CTE. A razão para isso é porque queremos fazer vários agrupamentos no final. A declaração SELECT final, que lê a partir do PIVOTCTE e combina-a com uma consulta subseqüente contra o mesmo PIVOTCTE, mas onde também implementamos dois agrupamentos no recurso GROUPING SETS no SQL 2008: GROUPING by Week Week (dbo. WeekEndingDate) GRUPO para todas as linhas () Então, se soubéssemos com certeza que nunca tivemos mais códigos de razão de retorno, então essa seria a solução. No entanto, precisamos contabilizar outros códigos de razão. Portanto, precisamos gerar toda essa consulta acima como uma grande cadeia onde construímos os possíveis motivos de retorno como uma lista separada por vírgulas. I39m vai mostrar todo o código T-SQL para gerar (e executar) a consulta desejada. E então eu vou dividi-lo em partes e explicar cada passo. Então, primeiro, aqui o código inteiro para gerar dinamicamente o que eu tenho acima. Existem basicamente cinco etapas que precisamos cobrir. Passo 1 . Nós sabemos que em algum lugar da mistura, precisamos gerar uma string para isso na consulta: SalesAmount, Razão A, Razão B, Razão C, Razão D0160016001600160 O que podemos fazer é criar uma expressão de tabela comum temporária que combina as quotSales com fio rígido Montante da coluna com a lista única de possíveis códigos de razão. Uma vez que temos isso em um CTE, podemos usar o pequeno truque de FOR XML PATH (3939) para colapsar essas linhas em uma única seqüência de caracteres, colocar uma vírsa na frente de cada linha que a consulta lê e usar STUFF para substituir A primeira instância de uma vírgula com espaço vazio. Este é um truque que você pode encontrar em centenas de blogs SQL. Então, esta primeira parte cria uma string chamada ActionString que podemos usar mais abaixo. Passo 2 . Nós também sabemos que queremos somar as colunas de motivo geradas, juntamente com a coluna de vendas padrão. Então, precisamos de uma string separada para isso, que eu chamarei de SUMSTRING. Eu simplesmente usarei o ActionString original e, em seguida, REPLACE os suportes externos com a sintaxe SUM, mais os suportes originais. Passo 3: agora o trabalho real começa. Usando essa consulta original como modelo, queremos gerar a consulta original (começando com o UNION das duas tabelas), mas substituindo quaisquer referências a colunas giratórias com as strings que geramos dinamicamente acima. Além disso, embora não seja absolutamente necessário, I39 também criou uma variável para simplesmente qualquer combinação de feed de retorno de carro que queremos inserir na consulta gerada (para legibilidade). Então, construamos toda a consulta em uma variável chamada SQLPivotQuery. Passo 4. Continuamos construindo a consulta novamente, concatenando a sintaxe, podemos quotar-wirequot com ActionSelectString (que geramos dinamicamente para manter todos os possíveis valores de razão de retorno) Etapa 5. Finalmente, nós geramos a parte final do Pivot Query, que lê a partir da 2ª expressão da tabela comum (PIVOTCTE, do modelo acima) e gera o SELECT final para ler do PIVOTCTE e combiná-lo com uma 2ª leitura contra o PIVOTCTE para Implementar os conjuntos de agrupamento. Finalmente, podemos citarxecutequot a string usando o processo SQL armazenado spexecuteSQL. Então, espero que você possa ver que o processo a seguir para este tipo de esforço é Determinar qual seria a consulta final, com base em seu conjunto atual de dados e valores (isto é, construído Um modelo de consulta) Escreva o código T-SQL necessário para gerar esse modelo de consulta como uma string. Provavelmente, a parte mais importante é determinar o conjunto único de valores em que você PENSA, e depois colapsá-los em uma seqüência usando a função STUFF e o trilho FOR XML PATH (3939) Então, o que está em minha mente hoje Bem, pelo menos, 13 itens Dois No verão, escrevi um rascunho BDR que enfoca (em parte) o papel da educação e o valor de uma boa base de artes liberais, não apenas para a indústria de software, mas também para outras indústrias. Um dos temas deste BDR especial enfatizou um ponto de vista fundamental e iluminado do renomado arquiteto de software Allen Holub sobre artes liberais. (Fielmente) parafraseando sua mensagem: ele destacou os paralelos entre a programação e o estudo da história, lembrando a todos que a história está lendo e escrevendo (e eu somo, identificando padrões) e o desenvolvimento de software também está lendo e escrevendo (e novamente, identificando padrões ). E então escrevi uma peça de opinião focada neste e outros tópicos relacionados. Mas até hoje, nunca cheguei a publicar nem publicar. De vez em quando, penso em revisá-lo, e até mesmo me sentar por alguns minutos e fazer alguns ajustes. Mas então a vida em geral iria entrar no caminho e eu nunca terminaria. Então, o que mudou Algumas semanas atrás, o colecionador CoDe Magazine e o líder da indústria, Ted Neward, escreveram uma peça em sua coluna regular, Managed Coder, que chamou minha atenção. O título do artigo é On Liberal Arts. E eu recomendo que todos leu. Ted discute o valor de um fundo de artes liberais, a falsa dicotomia entre um fundo de artes liberais e o sucesso no desenvolvimento de software, e a necessidade de escrever se comunicar bem. Ele fala sobre alguns de seus encontros anteriores com o gerenciamento de pessoal de RH em relação aos seus antecedentes educacionais. Ele também enfatiza a necessidade de aceitar e adaptar-se às mudanças em nossa indústria, bem como as características de um profissional de software bem-sucedido (ser confiável, planejar com antecedência e aprender a superar os conflitos iniciais com outros membros da equipe). Então, é uma ótima leitura, assim como os outros artigos CoDe de Teds e entradas de blog. Também me trouxe de volta a pensar em minhas opiniões sobre isso (e outros tópicos), e finalmente me motivou a terminar meu próprio editorial. Então, melhor tarde do que nunca, aqui estão os meus Bakers Dozen of Reflections: eu tenho um ditado: a água congela a 32 graus. Se você estiver em um papel de treinamento, você pode pensar que você está fazendo tudo no mundo para ajudar alguém quando de fato, eles só sentem uma temperatura de 34 graus e, portanto, as coisas não estão solidificando para eles. Às vezes é preciso apenas um pouco mais de esforço ou outro catalisador idequímico ou uma nova perspectiva, o que significa que aqueles com educação prévia podem recorrer a diferentes fontes. A água congela a 32 graus. Algumas pessoas podem manter altos níveis de concentração mesmo com uma sala cheia de gente barulhenta. Eu não sou um ocasionalmente eu preciso de alguma privacidade para pensar em um problema crítico. Algumas pessoas descrevem isso porque você deve aprender a se afastar disso. Dito de outra forma, é uma busca pelo ar rarefeito. Na semana passada, passei horas em quarto meio iluminado e silencioso com um quadro branco, até entender completamente um problema. Foi só então que eu poderia falar com outros desenvolvedores sobre uma solução. A mensagem aqui não é para pregar como você deve seguir seu negócio de resolver problemas, mas sim para que todos saibam seus pontos fortes e o que funciona e use-os em sua vantagem tanto quanto possível. Algumas frases são como as unhas em um quadro para mim. Use-o como um momento de ensino é um. (Por que é como as unhas em um quadro-negro Porque, se você estiver em um papel de mentor, você geralmente deve estar no modo de momento de ensino de qualquer maneira, por mais sutil que seja). Por outro lado, não posso realmente explicar isso em palavras, mas entendo. Isso pode soar um pouco frio, mas se uma pessoa realmente não pode explicar algo em palavras, talvez eles não entendam. Claro, uma pessoa pode ter uma sensação difusa de como algo funciona, eu posso explodir meu caminho através da descrição de como uma câmera digital funciona, mas a verdade é que eu realmente não entendo tudo tão bem. Existe um campo de estudo conhecido como epistemologia (o estudo do conhecimento). Uma das bases fundamentais para entender se é uma câmera ou um padrão de design - é a capacidade de estabelecer o contexto, identificar a cadeia de eventos relacionados, os atributos de qualquer componente ao longo do caminho, etc. Sim, a compreensão às vezes é um trabalho muito difícil , Mas mergulhar em um tópico e separá-lo vale o esforço. Mesmo aqueles que evitam a certificação reconhecerão que o processo de estudo para testes de certificação ajudará a preencher lacunas no conhecimento. Um gerenciador de banco de dados é mais provável contratar um desenvolvedor de banco de dados que possa falar extemporaneamente (e sem esforço) sobre os níveis de isolamento de transações e desencadeia, em oposição a alguém que sabe disso, mas se esforça para descrever seu uso. Há outro corolário aqui. Ted Neward recomenda que os desenvolvedores ocupem discursos em público, blogueiros, etc. Eu concordo 100. O processo de falar em público e blogging praticamente o forçará a começar a pensar em tópicos e a quebrar as definições que você poderia ter dado por certo. Há alguns anos pensei ter entendido a afirmação T-SQL MERGE muito bem. Mas apenas depois de escrever sobre isso, falando sobre, colocando perguntas de outros que tiveram perspectivas que nunca me ocorreram que meu nível de compreensão aumentou exponencialmente. Conheço uma história de gerente de contratação que já entrevistou um autordeveloper para um cargo contratado. O gerente de contratação era desdenhoso de publicações em geral e atirava o candidato, então, se você estiver trabalhando aqui, preferiria estar escrevendo livros ou escrevendo código. Sim, eu concedo que em qualquer setor haverá alguns acadêmicos puros. Mas o que o gerente de contratação perdeu foi a oportunidade de fortalecer e aprimorar os conjuntos de habilidades. Ao limpar uma velha caixa de livros, encontrei um tesouro da década de 1980: programadores no trabalho. Que contém entrevistas com um jovem Bill Gates, Ray Ozzie e outros nomes bem conhecidos. Toda entrevista e cada visão vale o preço do livro. Na minha opinião, a entrevista mais interessante foi com Butler Lampson. Que deu alguns conselhos poderosos. Para o inferno com a alfabetização informática. É absolutamente ridículo. Estudar matematica. Aprenda a pensar. Ler. Escreva. Essas coisas são de valor mais duradouro. Saiba como provar teoremas: muita evidência se acumulou ao longo dos séculos que sugere que essa habilidade é transferível para muitas outras coisas. Butler fala a verdade. Acréscimo a esse ponto, aprenda como jogar os demônios defendem contra si mesmos. Quanto mais você puder ver a realidade, verifique seus próprios processos e trabalhe, melhor será. O grande computador scientistauthor Allen Holub fez a conexão entre o desenvolvimento de software e as artes liberais especificamente, o assunto da história. Aqui estava o seu ponto de vista: o que é história Lendo e escrevendo. O que é desenvolvimento de software Entre outras coisas, leitura e escrita. Eu costumava dar a meus alunos perguntas de ensaio T-SQL como testes práticos. Um estudante brincou que eu atuei mais como um professor de direito. Bem, assim como o treinador Donny Haskins disse no filme Glory Road, meu caminho é difícil. Eu acredito firmemente em uma forte base intelectual para qualquer profissão. Assim como as aplicações podem se beneficiar de estruturas, os indivíduos e seus processos de pensamento também podem se beneficiar de estruturas humanas. Essa é a base fundamental da bolsa de estudos. Há uma história que, na década de 1970, a IBM expandiu seus esforços de recrutamento nas principais universidades, concentrando-se nos melhores e mais brilhantes graduados de artes liberais. Mesmo assim, reconheceram que os melhores leitores e escritores podem algum dia se tornar fortes analistas de sistemas programáticos. (Sinta-se livre para usar essa história para qualquer tipo de RH que insista que um candidato deve ter um diploma de ciência da computação) E falando de história: se por nenhum outro motivo, é importante lembrar o histórico de lançamentos de produtos se eu estiver trabalhando em um Site cliente que ainda está usando SQL Server 2008 ou mesmo (gasp) SQL Server 2005, eu tenho que lembrar quais recursos foram implementados nas versões ao longo do tempo. Já tem um médico favorito que você gostou porque ele explicou coisas em inglês simples, deu-lhe a verdade direta e ganhou sua confiança para operar com você. Essas são habilidades loucas. E são o resultado de experiências e TRABALHOS DUROS que levam anos e até décadas a cultivar. Não há garantias sobre o foco no sucesso do trabalho nos fatos, tire alguns riscos calculados quando tiver certeza de que pode ver o seu caminho até a linha de chegada, deixar as fichas cair onde elas podem, e nunca perder de vista ser como aquele médico que ganhou sua confiança. Mesmo que alguns dias eu fiquei curto, eu tento tratar meu cliente e seus dados como um médico trataria os pacientes. Mesmo que um médico ganhe mais dinheiro Existem muitos clichês que eu detesto, mas heres, eu não odeio: não existe uma pergunta ruim. Como ex-instrutor, uma coisa que atraiu minha ira era ouvir alguém criticar outra pessoa por ter feito uma pergunta suposta e estúpida. Uma pergunta indica que uma pessoa reconhece que eles têm alguma lacuna no conhecimento que estão procurando preencher. Sim, algumas perguntas são melhor formuladas do que outras, e algumas questões requerem enquadramento adicional antes de serem respondidas. Mas a jornada de formar uma pergunta para uma resposta provavelmente gerará um processo mental ativo em outros. Há todas as coisas boas. Muitas discussões boas e frutíferas se originam com uma pergunta estúpida. Eu trabalho em todas as ferramentas no SSIS, SSAS, SSRS, MDX, PPS, SharePoint, Power BI, DAX todas as ferramentas na pilha de BI da Microsoft. Ainda escrevo algum código. NET de vez em quando. Mas adivinhe o que ainda gasto tanto tempo escrevendo código T-SQL para dados de perfil como parte do processo de descoberta. Todos os desenvolvedores de aplicativos devem ter bons cortes T-SQL. Ted Neward escreve (corretamente) sobre a necessidade de se adaptar às mudanças de tecnologia. Acréscimo a isso a necessidade de me adaptar às mudanças do cliente. As empresas mudam as regras de negócios. As empresas adquirem outras empresas (ou se tornam alvo de uma aquisição). As empresas cometem erros na comunicação de requisitos e especificações comerciais. Sim, às vezes podemos desempenhar um papel em ajudar a gerenciar essas mudanças e, às vezes, eram a mosca, não o pára-brisa. Isso às vezes causa grande dor para todos, especialmente o I. T. pessoas. É por isso que o termo "fato da vida" existe, temos de lidar com isso. Assim como nenhum desenvolvedor escreve código sem erros sempre, não I. T. A pessoa lida bem com as mudanças a cada momento. Uma das maiores lutas que eu tive nos meus 28 anos nesta indústria está mostrando paciência e restrição quando as mudanças estão voando de muitas direções diferentes. Aqui é onde minha sugestão anterior sobre como procurar o ar rarizado pode ajudar. Se você consegue assimilar as mudanças em seu processo de pensamento e, sem se sentir sobrecarregado, as chances são de você ser um ativo significativo. Nos últimos 15 meses, tive que lidar com uma grande quantidade de mudanças profissionais. Tem sido muito difícil às vezes, mas eu decidi que a mudança será a norma e eu tentei ajustar meus próprios hábitos do melhor jeito para lidar com mudanças freqüentes (e incertas). É difícil, muito difícil. Mas como o treinador Jimmy Duggan disse no filme A League of Own: Claro que é difícil. Se não fosse difícil, todos iriam fazê-lo. O difícil, é o que o torna ótimo. Uma mensagem poderosa. Havia conversas na indústria nos últimos anos sobre a conduta em conferências profissionais (e a conduta na indústria como um todo). Muitos escritores respeitados escreveram muito bons editoriais sobre o assunto. É minha contribuição, para o que vale a pena. Its a message to those individuals who have chosen to behave badly: Dude, it shouldnt be that hard to behave like an adult. A few years ago, CoDe Magazine Chief Editor Rod Paddock made some great points in an editorial about Codes of Conduct at conferences. Its definitely unfortunate to have to remind people of what they should expect out of themselves. But the problems go deeper. A few years ago I sat on a five-person panel (3 women, 2 men) at a community event on Women in Technology. The other male stated that men succeed in this industry because the Y chromosome gives men an advantage in areas of performance. The individual who made these remarks is a highly respected technology expert, and not some bozo making dongle remarks at a conference or sponsoring a programming contest where first prize is a date with a bikini model. Our world is becoming increasingly polarized (just watch the news for five minutes), sadly with emotion often winning over reason. Even in our industry, recently I heard someone in a position of responsibility bash software tool XYZ based on a ridiculous premise and then give false praise to a competing tool. So many opinions, so many arguments, but heres the key: before taking a stand, do your homework and get the facts . Sometimes both sides are partly rightor wrong. Theres only one way to determine: get the facts. As Robert Heinlein wrote, Facts are your single clue get the facts Of course, once you get the facts, the next step is to express them in a meaningful and even compelling way. Theres nothing wrong with using some emotion in an intellectual debate but it IS wrong to replace an intellectual debate with emotion and false agenda. A while back I faced resistance to SQL Server Analysis Services from someone who claimed the tool couldnt do feature XYZ. The specifics of XYZ dont matter here. I spent about two hours that evening working up a demo to cogently demonstrate the original claim was false. In that example, it worked. I cant swear it will always work, but to me thats the only way. Im old enough to remember life at a teen in the 1970s. Back then, when a person lost hisher job, (often) it was because the person just wasnt cutting the mustard. Fast-forward to today: a sad fact of life is that even talented people are now losing their jobs because of the changing economic conditions. Theres never a full-proof method for immunity, but now more than ever its critical to provide a high level of what I call the Three Vs (value, versatility, and velocity) for your employerclients. I might not always like working weekends or very late at night to do the proverbial work of two people but then I remember there are folks out there who would give anything to be working at 1 AM at night to feed their families and pay their bills. Always be yourselfyour BEST self. Some people need inspiration from time to time. Heres mine: the great sports movie, Glory Road. If youve never watched it, and even if youre not a sports fan I can almost guarantee youll be moved like never before. And Ill close with this. If you need some major motivation, Ill refer to a story from 2006. Jason McElwain, a high school student with autism, came off the bench to score twenty points in a high school basketball game in Rochester New York. Heres a great YouTube video. His mother said it all . This is the first moment Jason has ever succeeded and is proud of himself. I look at autism as the Berlin Wall. He cracked it. To anyone who wanted to attend my session at todays SQL Saturday event in DC I apologize that the session had to be cancelled. I hate to make excuses, but a combination of getting back late from Detroit (client trip), a car thats dead (blown head gasket), and some sudden health issues with my wife have made it impossible for me to attend. Back in August, I did the same session (ColumnStore Index) for PASS as a webinar. You can go to this link to access the video (itll be streamed, as all PASS videos are streamed) The link does require that you fill out your name and email address, but thats it. And then you can watch the video. Feel free to contact me if you have questions, at kgoffkevinsgoff. net November 15, 2013 Getting started with Windows Azure and creating SQL Databases in the cloud can be a bit daunting, especially if youve never tried out any of Microsofts cloud offerings. Fortunately, Ive created a webcast to help people get started. This is an absolute beginners guide to creating SQL Databases under Windows Azure. It assumes zero prior knowledge of Azure. You can go to the BDBI Webcasts of this website and check out my webcast (dated 11102013). Or you can just download the webcast videos right here: here is part 1 and here is part 2. You can also download the slide deck here. November 03, 2013 Topic this week: SQL Server Snapshot Isolation Levels, added in SQL Server 2005. To this day, there are still many SQL developers, many good SQL developers who either arent aware of this feature, or havent had time to look at it. Hopefully this information will help. Companion webcast will be uploaded in the next day look for it in the BDBI Webcasts section of this blog. October 26, 2013 Im going to start a weekly post of T-SQL tips, covering many different versions of SQL Server over the years Heres a challenge many developers face. Ill whittle it down to a very simple example, but one where the pattern applies to many situations. Suppose you have a stored procedure that receives a single vendor ID and updates the freight for all orders with that vendor id. create procedure dbo. UpdateVendorOrders update Purchasing. PurchaseOrderHeader set Freight Freight 1 where VendorID VendorID Now, suppose we need to run this for a set of vendor IDs. Today we might run it for three vendors, tomorrow for five vendors, the next day for 100 vendors. We want to pass in the vendor IDs. If youve worked with SQL Server, you can probably guess where Im going with this. The big question is how do we pass a variable number of Vendor IDs Or, stated more generally, how do we pass an array, or a table of keys, to a procedure Something along the lines of exec dbo. UpdateVendorOrders SomeListOfVendors Over the years, developers have come up with different methods: Going all the way back to SQL Server 2000, developers might create a comma-separated list of vendor keys, and pass the CSV list as a varchar to the procedure. The procedure would shred the CSV varchar variable into a table variable and then join the PurchaseOrderHeader table to that table variable (to update the Freight for just those vendors in the table). I wrote about this in CoDe Magazine back in early 2005 (code-magazinearticleprint. aspxquickid0503071ampprintmodetrue. Tip 3) In SQL Server 2005, you could actually create an XML string of the vendor IDs, pass the XML string to the procedure, and then use XQUERY to shred the XML as a table variable. I also wrote about this in CoDe Magazine back in 2007 (code-magazinearticleprint. aspxquickid0703041ampprintmodetrue. Tip 12)Also, some developers will populate a temp table ahead of time, and then reference the temp table inside the procedure. All of these certainly work, and developers have had to use these techniques before because for years there was NO WAY to directly pass a table to a SQL Server stored procedure. Until SQL Server 2008 when Microsoft implemented the table type. This FINALLY allowed developers to pass an actual table of rows to a stored procedure. Now, it does require a few steps. We cant just pass any old table to a procedure. It has to be a pre-defined type (a template). So lets suppose we always want to pass a set of integer keys to different procedures. One day it might be a list of vendor keys. Next day it might be a list of customer keys. So we can create a generic table type of keys, one that can be instantiated for customer keys, vendor keys, etc. CREATE TYPE IntKeysTT AS TABLE ( IntKey int NOT NULL ) So Ive created a Table Typecalled IntKeysTT . Its defined to have one column an IntKey. Nowsuppose I want to load it with Vendors who have a Credit Rating of 1..and then take that list of Vendor keys and pass it to a procedure: DECLARE VendorList IntKeysTT INSERT INTO VendorList SELECT BusinessEntityID from Purchasing. Vendor WHERE CreditRating 1 So, I now have a table type variable not just any table variable, but a table type variable (that I populated the same way I would populate a normal table variable). Its in server memory (unless it needs to spill to tempDB) and is therefore private to the connectionprocess. OK, can I pass it to the stored procedure now Well, not yet we need to modify the procedure to receive a table type. Heres the code: create procedure dbo. UpdateVendorOrdersFromTT IntKeysTT IntKeysTT READONLY update Purchasing. PurchaseOrderHeader set Freight Freight 1 FROM Purchasing. PurchaseOrderHeader JOIN IntKeysTT TempVendorList ON PurchaseOrderHeader. VendorID Te mpVendorList. IntKey Notice how the procedure receives the IntKeysTT table type as a Table Type (again, not just a regular table, but a table type). It also receives it as a READONLY parameter. You CANNOT modify the contents of this table type inside the procedure. Usually you wont want to you simply want to read from it. Well, now you can reference the table type as a parameter and then utilize it in the JOIN statement, as you would any other table variable. So there you have it. A bit of work to set up the table type, but in my view, definitely worth it. Additionally, if you pass values from. NET, youre in luck. You can pass an ADO. NET data table (with the same tablename property as the name of the Table Type) to the procedure. For. NET developers who have had to pass CSV lists, XML strings, etc. to a procedure in the past, this is a huge benefit. Finally I want to talk about another approach people have used over the years. SQL Server Cursors. At the risk of sounding dogmatic, I strongly advise against Cursors, unless there is just no other way. Cursors are expensive operations in the server, For instance, someone might use a cursor approach and implement the solution this way: DECLARE VendorID int DECLARE dbcursor CURSOR FASTFORWARD FOR SELECT BusinessEntityID from Purchasing. Vendor where CreditRating 1 FETCH NEXT FROM dbcursor INTO VendorID WHILE FETCHSTATUS 0 EXEC dbo. UpdateVendorOrders VendorID FETCH NEXT FROM dbcursor INTO VendorID The best thing Ill say about this is that it works. And yes, getting something to work is a milestone. But getting something to work and getting something to work acceptably are two different things. Even if this process only takes 5-10 seconds to run, in those 5-10 seconds the cursor utilizes SQL Server resources quite heavily. Thats not a good idea in a large production environment. Additionally, the more the of rows in the cursor to fetch and the more the number of executions of the procedure, the slower it will be. When I ran both processes (the cursor approach and then the table type approach) against a small sampling of vendors (5 vendors), the processing times where 260 ms and 60 ms, respectively. So the table type approach was roughly 4 times faster. But then when I ran the 2 scenarios against a much larger of vendors (84 vendors), the different was staggering 6701 ms versus 207 ms, respectively. So the table type approach was roughly 32 times faster. Again, the CURSOR approach is definitely the least attractive approach. Even in SQL Server 2005, it would have been better to create a CSV list or an XML string (providing the number of keys could be stored in a scalar variable). But now that there is a Table Type feature in SQL Server 2008, you can achieve the objective with a feature thats more closely modeled to the way developers are thinking specifically, how do we pass a table to a procedure Now we have an answer Hope you find this feature help. Feel free to post a comment. Best Wine Coolers 038 Fridges 8211 (Reviews 038 Guide 2016) Without being a wine expert, most wine-lovers know that it is a delicate beverage. To enjoy the taste at its fullest, it should be carefully stored and served at a proper temperature. Before going into details about cooling techniques and wine refrigerator reviews . be sure that, you8217ll get all information to find the best wine cooler in this post For those who keep their wine bottles in the refrigerator, it takes up precious space which can be used for food instead. Also, a refrigerator is too cold and lacks the required humidity. Storing wine bottles in cupboards or cabinets, on the other hand, poses a greater risk on your wines fate, especially if your place is overheated or has changing temperature. A wine cooler is a perfect solution because it provides enough space and proper conditions to store wine. This way, you can be well prepared for a party or save a precious vintage for special occasions without the risk of spoiling it. Choosing the right wine cooler is difficult as there are many types and features. Still, you can select the best wine cooler according to your needs with the help of our wine cooler reviews below Top Rated Wine Coolers 4.3 Customer Rating Wine Enthusiast 6 Bottle Touchscreen Wine Cooler This 6-bottle capacity wine cooler is the right size for beginner wine enthusiasts. Its compact size allows you to place it on your countertop without taking up much space. The interior LED lighting, the reflective smoked-glass door and the designer style make it look more like a chic accessory on your counter. With an adjustable temperature range of 44-66F, you can set it to your desired temperature to store a couple of precious bottles to serve any day and to cool a few bottles of wine at a time. The exterior digital touchscreen with temperature display helps you control the temperature easily. As a thermoelectric cooler, Wine Enthusiast 6 Bottle Wine Cooler is energy-efficient and CFC-free. Thanks to its silent cooling technology, it protects the taste of your wine quietly. Also, you can easily fit the bottles on the 3 sturdy pull-out chrome shelves. If you are not sure if a wine cooler is worth a try, this compact, and affordable model will help introduce you to the experience. As you enjoy your wine more, you may see it is an excellent value for the price and you may even consider taking it one step further in the future. Avanti 12 Bottle Thermoelectric Counter Top Wine Cooler 8211 Model EWC1201 Due to its innovative design which allows vertical storage of 4 bottles, this wine cooler stands out among its peers. The vertical storage space can be used for opened bottles of wine. This way, you dont need to worry about finishing a whole bottle just because the wine will spoil once it is opened. Moreover, if you favor using vacuum stoppers for opened bottles, they will fit in perfectly in the cooler as you can place the bottles in an upright position. Also, the 8-bottle horizontal area of Avanti Wine Cooler provides adequate space to preserve your unopened bottles. Thanks to its compact design, Avanti 12 Bottle Wine Cooler doesnt take as much space for the amount of wine it holds. The curved glass door and the black cabinet add to its stylish looks and make it a nice to have piece of your decor, not just a cooler. With its innovative thermoelectric cooling technology, Avanti 12 Bottle Wine Cooler provides an ultra-quiet cooling environment and minimizes the vibration which is crucial not to disturb bottle sediment. The soft-touch temperature control switches have delayed control mechanism which prevents unwanted temperature changes by random pushes of children. In short, you can find smart looks and functionality in Avanti 12 Bottle Wine Cooler. Click here for our full-featured Avanti 12 Bottle Counter Top Review . Haier 12-Bottle Dual Zone Curved Door with Smoked Glass Wine Cellar Haier 12 Bottle Dual Zone Wine Cellar is the right choice if you love your chilled whites as much as your not-so-chilled reds. As a benefit of dual zone structure, you can adjust the temperature at 46-66F in the lower compartment for white wine whereas at 54-66F in the upper compartment for red. This way, you can store your white and red wine separately and serve them at their optimal temperature. Thanks to its thermoelectric cooling system, Haier 12 Bottle Dual Zone Wine Cellar is whisper-quiet, vibration-free and keeps the temperature steady even with fluctuations in the ambient temperature. With its slim design, the cooler unit has a small footprint so that you can place it even in little nooks. On the other hand, it is deep enough so that you can use vacuum seal corks and also have room up front for longer bottles. It has an attractive look with its style, the curved door with smoked glass and the interior LED light. If you are looking for an inexpensive, easy to operate and good looking dual zone wine cooler, Haier 12 Bottle Dual Zone Wine Cellar is a perfect choice. For the ones who like the features of Haier Wine Cooler but not sure about the size, it also comes in smaller and larger sizes. Whynter 20 Bottle Thermoelectric Wine Cooler Whynter Wine Cooler is as cool as it gets because it is true to its word of keeping the temperature at its lowest around 46F, regardless of the ambient temperature. The temperature can be adjusted precisely from the soft-touch digital control panel and stays consistent at the pre-set degree. The unit has a black tinted mirror glass door which is pleasing to the eye and also plays an important role in providing extra protection from UV rays that can affect the consistency of wine. The wine cooler has a soft interior LED lighting which enables you to see through the glass door into the cooler. Besides being useful, this light adds a nice glow and even functions as a sweet nightlight. Being a thermoelectric cooler, Whynter Wine Cooler is vibration-free, quiet and long lasting. The cabinet is deep enough to store taller bottles and the racks are light yet very stable. They dont come out when you pull a bottle out which is an advantage as it prevents any accidental losses. The unit has leveling legs, which is a plus among others. If you want to keep more than a few bottles and especially chilled whites, Whynter 20 Bottle Thermoelectric Wine Cooler is your type. With its functionality and sleek design, this cooler can make a sophisticated addition to your home. Explore more of this cooler8217s features with our comprehensive Whynter 20 Bottle review . NewAir AWR-460DB 46 Bottle Built-in Dual Zone Compressor You can be a beginning collector with many precious bottles or a connoisseur with years of experience, NewAir AWR-460DB will definitely meet your expectations with its advanced features and all-inclusive design. Thanks to its front venting system, this cooler is suitable for built-in use. Still, with its stainless steel elegant design, you can place it anywhere of your choice as a freestanding unit. Moreover, the reversible door gives you more freedom in where to place your cooler and the door lock keeps your wine safe from intruders. The dual zone structure enables you to conserve red and white wine in separate compartments with independent climate control and keep them at their optimum serving temperature. The adjustable wooden shelves provide a spacious and customizable interior that holds up to 46 bottles. NewAir AWR-460DB offers an adjustable temperature range of 40-66F so that you can set for long-term storage or ready to serve. The compressor cooling maintains even temperatures throughout the interior and you can adjust the temperature precisely from the digital control panel. The unit has a built-in carbon filter to prevent odors and a blue LED light that reflects a nice hue on your collection. If you are looking for a smaller wine cooler from NewAir, you might want to check 18 Bottle version. If you are looking for a high-quality wine cooler with good storage capacity and top-notch attributes, NewAir AWR-460DB is an excellent choice for you. How to Store Wine at Home The key to storing any wine at home is to keep heat away from it. It can range from 7 to 18 degrees centigrade, but 138217C is almost perfect. Anything higher than 21 8216C will age wine and eventually lose its characteristic flavors and aroma. Learn more about ideal wine temperatures and storing requirements. including the temperature ranges as represented in degrees Fahrenheit. How to Choose a Wine Cooler Aided in some part by direct publication channels such as YouTube, foodie blogs, and cheap domain names, the wine experience market as witnessed an explosion over the past few years. We purposefully call it a wine enthusiasts experience as opposed to a mere wine drinking market because there are so many dynamics surrounding wine these days. To the true wine enthusiast, the wine lovers experience goes beyond the process of popping a bottle of your favorite variety and enjoying a glass. The wine lovers experience today has evolved into a big part the quintessential wine enthusiasts lifestyle, with the help of accessories such as wine coolers. The wine cooler, in particular, has brought the entire wine enthusiasts experience into the wine lovers home, making it more affordable to store, display and chill some of their favorite bottles for optimal consumption. Wine coolers, in particular, are taking center-stage as perhaps the main supporting acts to the consumption of the actual wines themselves. Wine coolers in their many varieties are also becoming cheaper and cheaper, making them more and more accessible to a new creed of wine enthusiasts. Wine storage used to be a rather expensive exercise, with the typical wine connoisseur of days gone by having to fork out a hefty sum for a built-in wine cellar, usually housed on the basement floor of their house. The advent and explosively growing popularity and availability of wine coolers have bridged that gap between a big budget and a deep-running love for wine, giving just about every wine lover the opportunity to take their enthusiasm for wine to the next level and bring it right into their own space. But how does one go about selecting a wine cooler, though, particularly taking into account the ever-growing list of available options from just as many manufacturers Real wine enthusiasts whose love for wine has them seriously considering investing in a dedicated wine cooling device will at this point know that buying a wine cooler is in no way like buying a regular refrigerator . If it was ideal to store your wines in a standard home fridge, thered be no purpose-built wine cooling appliances like electric wine cellars, wine refrigerators, and wine coolers. The wine cooler you ultimately decide to invest in naturally has to complement all your wine storage and wine displaying needs, whether current or in the immediate to long-term future. It is with this consideration in mind that you should go about picking out the ideal wine cooler. These considerations can be broken down into a list of three (3) main pointers to consider, which can be further broken down to some specific variables and values that best suit your requirements. This consideration point is fairly straightforward, largely limited only by the options you have available to you. Fortunately, though these options are aplenty, giving you a lot of styles and tastes to choose from. Wine coolers are known to sport some of the best design work of the appliance manufacturing industry, from classic, sophisticated, chic, and elegant, right up to contemporary and even ultra-modern. In some cases, youll even have some futuristic (out-of-this-world) design standards to choose from. Chances are any wine cooler you choose to buy will have you and your fellow wine-loving guests looking at it more than once, so itll then ultimately come down to your own personal style in terms of design. Most wine coolers also sport designs which are purpose-made to either serve as the focal point of your interiors or to blend in very well with any interior decoration style. When design moves away from outward appearance and spills over into practicality, picking out a wine cooler relies on the features it packs. Specific features to look for include: Warranty Size (in volume and weight do you want portability or do you want to maybe replace an old trash compactor) Temperature range How it operates how do you monitor the temperature and how do you setchange the temperature settings Bottle capacity Interior illumination (are you satisfied with a light that makes the cooler look nice or do you want to be able to see the labels through the glass) Type of cooler used (compression or thermoelectric cooling) Number of cooling compartments (single or dual-zone cooling) Application (countertop, under-counter, or built-in cooler ) Functionality Finally, when browsing through wine coolers with the view of settling on one that best meets your needs, you have to consider the wine coolers functionality. This is done through looking at the features list and trying to translate that into a practical setting. In other words, what exactly will you be using it for and, with that in mind, which cooler has the widest range of features that coincide with what youll be using it for For example, if you want a versatile wine cooler in which you can store both your red and white wines, you might consider a dual-zone cooler with independent temperature cooling compartments that have respective temperature ranges. These independent cooling zones and their respective temperature ranges would then be optimal for the storage of the different wine varieties at temperatures best suited to them. Some of the consideration points are self-explanatory, like the bottle capacity and whether you want an under counter, countertop or freestanding cooler. With regards to the temperature range and which types of wine, youll want to store in your cooler, the cooling technology used (thermoelectric vs. compression cooling) plays an important role. If you want a bigger capacity cooler (24-24 bottles), you might have to settle for a compression-cooled unit, which isnt a bad thing because compression coolers are known to last longer and are more powerful. Coolers with compressors generally hold internally set temperature well and this internal temperature is not dependent on the ambient air temperature of the room the cooler is housed in, as is the case with thermoelectric coolers. Similarly though, although thermoelectric coolers interior temperature is somewhat affected by the ambient air temperature, if you live in an area or if you place your cooler in a space with very low-temperature swings, this apparent flaw becomes irrelevant. Thermoelectric coolers are generally quieter than their compression-based counterparts, more energy efficient and give off less vibration. So, it should be becoming clearer to you by now that its simply a matter of looking at the features of the cooler youre considering and then translating those features into a physical application as it would play out in a practical setting. Exhausting Your Options and Conducting Comprehensive Comparisons A couple of the consideration pointers and features will require some compromise on your part because wine cooler manufacturers tend to look at the general wine storage requirements of wine enthusiasts at large, thereafter proceeding to aggregate those requirements and then incorporating those averages into their designs. This is not to say you wont find the perfect wine cooler that perfectly suits all your needs down to the tee, however, but keep an open mind and youll definitely be in possession of a wine cooler which is the closest fit to all your requirements. Types of Wine Coolers As a wine enthusiast who is a bit more serious about their wines than the average wine drinker, you will have undoubtedly come to the realization that a normal refrigerator just wont do to store your wines. You need a wine cooler in order to store your wines at temperatures which are friendlier to the delicate composition of your wines. Whether you want to just keep your wines from getting spoiled or if you are a regular wine drinker and you want to be able to pick your bottles straight out of the cooler for immediate consumption, investment in a wine cooler is necessary. While shopping around and perhaps reading through wine cooler reviews, however, you will notice that there are different types of wine coolers. These varied types of wine coolers can be categorized and classified in a number of different ways, including classification by: Cooling Unit Technology (Thermoelectric - or Compression-Cooled) Application (Countertop, Built-In, or Freestanding) Number of Temperature Zones (Single-Zone or Dual-Zone Cooling), and Bottle Storage CapacitySize Cooling Unit Technology Two types of cooling technologies typically go into wine coolers, namely thermoelectric cooling and compression-based cooling. The technical specifications of exactly how each cooling technology works arent all that important to a wine enthusiast, but there a few details about these technologies with direct implications on the way in which your wine cooler works. Thermoelectric-Cooled Wine Coolers Definitely, the environmentally-friendlier option between the two cooling technologies, thermoelectric cooling used in wine coolers translates into quiet operation with very little to no vibration. This means less power is consumed so bigger savings on your electricity bill and you also have less of an impact on the environment. Thermoelectric cooling tech is mostly used in wine coolers with a lower bottle capacity, typically those which carry from 6 to 18 bottles, sometimes a little more. Compression-Cooled Wine Coolers Compression cooling technology is a little older than thermoelectric cooling, predominantly used in traditional refrigerators. Compression cooling is more powerful than thermoelectric cooling but also has a bigger impact on the environment due to the use of CFCs and HCFs (although modern compressors have phased out the use of these environmentally harmful gasses). Compression-based cooling technology is typically used in wine coolers with larger bottle capacities (24 bottles). The power of a compressor in cooling units ensures much quicker cooling (the unit reaches the set temperature much quicker than in a thermoelectric-cooled appliance). Compression cooled units are also not dependent on the ambient temperature, so unlike with most thermoelectric coolers, compression-based wine coolers will maintain the set temperature regardless of the air temperature of the room you put the cooler in. A compression-based cooler is usually much louder though and compression-based wine coolers generally use up more power. Application The application of a wine cooler simply refers to where and how you install or place it. Countertop Coolers Countertop coolers are usually smaller-capacity units which are portable and are designed to be placed on top of a counter. Most countertop coolers are extensible in their application, which means they can also be used as freestanding units. So you might also place it on the floor in a man-cave or in the living room, as opposed to exclusively placing it on top of a counter in your kitchen. Built-In Coolers A built-in wine cooler as the name suggests is one which was designed and built to be integrated into some sort of interior cabinetry. 12-15 wide wine coolers are typically built into cabinetry space left vacant by an old trash compactor, but there are many different types of built-in wine coolers. Some of them can also be used as free-standing units if you dont necessarily want to build it into any cabinetry. Freestanding Coolers Freestanding coolers are usually larger units which are placed in any open area, like in an entertainment area, in the garage maybe, in a man-cave, in a home bar, or anywhere else where its not to be attached to anything else. Number of Temperature Cooling Zones This is perhaps the most common classification property used in the comparison of the different types of wine coolers available. As far as the number of temperature cooling zones goes, you get single-zone coolers and dual-zone coolers. Its very rare to find more than two cooling zones (up to three) as those types of coolers would be custom-built for commercial use as opposed to domestic use. Single-Zone Coolers Single-zone coolers are simply those wine coolers with one cooling compartment. You open the door and put all your bottles in one basket. Dual-Zone Coolers Dual-zone coolers have two cooling compartments or baskets, designed this way to offer users the ability to store two or more different types of wines at their optimal servingstorage temperatures. The temperatures usually have different ranges, e. g. the top temperature zone would maybe have a range suitable for white wine while the bottom zones range would be better suited to store red wines. The temperatures are independently controlled and the predominant design style is that of one cooler door opening up to both temperature zones cooling compartments. Bottle Storage Capacity Bottle storage capacity is perhaps the simplest classification property of the types of wine coolers available. The bottle capacities offered by different coolers have a very wide range. The most common increments though are 6 bottles, 12, 18, 24, 28, 30, 34, and 36 bottles. Beyond 36 bottles capacities are typically any even number (38, 40, etc) up to 300 bottles and more. Some special wine coolers have unusual bottle capacities of values like 29 bottles, but the manufacturers usually list them officially as even numbers like 28 bottles in such instances. Many wine coolers have shelves or wine racks which are removable and can also be rearranged. This makes their capacity modifiable, typically so that you can fit bigger bottles. Being delicate as it is, wine is most affected by the three factors below Light . Direct light can easily lead to wine faults. Humidity . A certain degree of humidity is required to sustain the quality of the wine (Experts note that 70-75 is ideal). If the cork dries out, that can allow air into the bottle which can cause the wine to oxidize. Temperature . Experts note that the ideal temperature for wine range from 40 to 65F depending on the type. As wine is very sensitive to temperature changes, it should be stored at a stable temperature. Otherwise, it can mature earlier or spoil. Best Wine Cooler Brands Wine coolers bearing the EdgeStar brand name are unmistakably distinctive in their appearance. If youve seen a few EdgeStar units in your life, youll notice the next EdgeStar wine cooler you see without catching sight of the name. This speaks volumes of the options you have with regards to defining and reinforcing your own personal style in wine coolers. An entertainers dream, EdgeStar wine coolers are also built to deliver a good measure of practicality in their deployment. With some very affordable yet feature-filled wine coolers in their huge range, EdgeStar particularly caters to a specific type of wine enthusiast. Pioneering wine enthusiasts who led the way in moving away from traditional basement-bound wine cellars to this array of electrical wine coolers we have today will 910 times have an experience with the EdgeStar name to speak of. Forming a very good part of the Living Direct parent company of home appliance manufacturers, the EdgeStar name in wine coolers grabbed the initiative as a pioneering manufacturer of wine coolers and has remained popular amongst consumers to this day. A very wide bottle storage capacity range of 28, right up to a colossal 300 bottles, presents a lot of options to choose from. See if you can find the perfect cooler for your needs by checking out our EdgeStar cooler reviews . If youre considering buying a wine cooler from Avanti, your main motivation would be to benefit from the special attention they pay to produce wine coolers that complement the consumers lifestyles. Every type of wine lover, from the beginner collector right up to the vastly experienced connoisseur, can come away with a wine cooler from Avanti thatll fit perfectly into their wine enthusiasts lifestyle. The Avanti name isnt popular for nothing, with this popularity actually going beyond their range of wine coolers and spilling over into their entire range of electrical appliances. Avanti wine coolers are as much a wine lovers dream as they are an interior decorators dream. While the technical specifications are what will ultimately swing the buying decision of the wine enthusiast, any Avanti wine cooler comes with a characteristic compactness and progressive design which will fit into just about any setting earmarked for the storage, display and cooling of wines. Whether you want to keep a few bottles perfectly chilled at their ideal serving temperature or indeed if you want to store up to 166 bottles over the long-term, Avantis range of wine coolers will show you just why this is such a popular brand. Browse through a few available options on our Avanti cooler reviews page . Danby is another popular brand name of wine cooler manufacturers, but what youll realize is that the Danby name is most popular amongst wine enthusiasts who have owned more than one wine cooler in their lives. This is because an experienced wine enthusiast can look at the feature list of a Danby wine cooler see the unit for what it truly is an elegantly designed cooler with the inherent potential to add loads of class to any interior space its housed in, but also, one which has a well-balanced set of all-around features. A typical Danby wine cooler of any capacity comes standard with real post-sale value. If you purchase a Danby wine cooler with the appropriate warranty option (extended warranty), the post-lifespan operational costs of keeping your Danby cooler running well will work out to far less than other options. This is not to say Danby coolers are not built to last, however Danby makes some high quality, strong coolers that will preserve your wines as well as they display them. Choosing the right Danby cooler can also afford you some great extensibility, which plays out in your ability to store cheese along with your wines, or maybe even use your cooler to store other beverages once in a while. Have a look at our Danby cooler reviews for more detailed info and options. Forming the other half of the Living Direct parent company of wine cooler manufacturers, the Koldfront brand name takes design elegance to the next level. This next-level design elegance can be especially witnessed in Koldfronts Series 7 range of wine coolers, which bear a uniquely modern and contemporary style. Looks are definitely the major pulling force which draws in potential consumers, but once the plethora of integrated features is explored it very quickly becomes apparent that Koldfront has a wine cooler to suit every budget. Thats largely where Koldfront coolers draw most of their growing popularity, but what makes Koldfront wine coolers even more popular is the interchangeability of features and design style. With many coolers from other manufacturers, its generally a case of wishing a particular design style coincided with a certain set of features youre specifically looking for. Thats not the case with Koldfront coolers because youre very likely to find a Koldfront wine cooler that caters to your functionality needs and bears the design style youd select as your first choice. Koldfronts range of wine coolers is so versatile that some of their units can be used for commercial purposes as well. Any Koldfront cooler which caters to commercial usage needs is one which is naturally built to last. Check out our Koldfront wine cooler reviews to find the perfect one for you. The Haier brand is also very quickly growing in popularity, particularly amongst beginner wine collectors who are on the lookout for wine storage capacity bottles that get as compact as half a dozen bottles. If you are truly limited for space or if you only have a few of your favorite bottles to keep chilled at optimal serving temperature, it would only make sense to consider a Haier cooler. Perhaps the Haier brands most solid claim to fame though is the fact that even though a lot of their popular units house a smaller number of bottles, they still put a lot of effort into the design, functionality, and performance. Haier wine coolers offer a nice temperature range and are at times unrivaled in the way they look. Its no wonder why Haier is fast becoming the go-to brand for compact wine storage, particularly among wine enthusiasts who need a versatile wine storage solution to fit in with their varied wine-lovers lifestyles. Haier coolers also offer some great extensibility and you can check out or Haier reviews to see if you cant find a perfect fit for your wine chilling needs. History of Wine Wine is a type of alcoholic drink that is made by fermenting grapes. Other types of wine are made with fruits and plants but will not be discussed here. The oldest wine ever found in human history would be that of fermented honey, rice, and fruit residue in China around 7000 BCE. By 4100 BCE, the oldest winery has been established in an Armenian cave. It was around 1500 to 300 BCE that the Phoenicians showed Vitis Vinifera all over the Mediterranean region. However, it was the Romans that spread wine grapes throughout Europe until it fell by 500 AD. The Loire Valley has the Chateau de Goulaine established at 1000 AD. It is the oldest and still operating a winery in existence. Pinot Noir is used to be known as Morillon in 1200 and Muscat Blanc as Muscatellus in 1304. By the time the Black Place ended in 1400, wine is the safest beverage to drink compared to water. Around 1500, Muscat Blanc, Pinot Noir, Tempranillo, and Riesling were established as common wines. The New World gets wine grapes courtesy of the Portuguese and Spaniards in 1530. Madeira appears in 1600 as vinho da roda, the wine that has been aged on sea travel. Fifty years later, Cabernet Sauvignon is born in Bordeaux. Dom Perignon develops champagne in 1693. By 1752, port wines such as Port, Constantia, Tokaji, Sherry, Sauternes, and Madeira become popular. In 1964, Sangria invades the United States at the World Fair in Seattle. Types of Wines White wine. A versatile wine that takes on the flavors and aromas depending on where it is grown and stored. It8217s fruity like apple and lime in colder climates or takes on tropical fruits in warmer regions. Oak barrels impart it with honey and butter flavors but fresh on the palate when stored in stainless steel. Seafood is its soul mate, especially oysters. Crisp, clean wine with a hint of green apple, pear, and lime. As it ages, it will develop honey taste and oily aromas. It pairs well with spicy foods as well as poultry and pork. Pinot Gris. Sharp, crisp, and refreshing wine when done Italian style or rich and spicy when done the usual. It8217s taste and aroma depends on where the grapes are grown and how it is stored. Great with seafood, pasta, poultry, or vegetarian fare. Sauvignon Blanc. Fresh, crisp, and fragrant and tastes somewhat of grapefruit and grass. You can8217t go wrong with it as it works well with seafood, poultry, and vegetable dishes. Red wine. It is a mild, supple wine with fruity flavor of plum and blackberries and hints of mint, chocolate, and eucalyptus essence and aroma. Like the Cabernet Sauvignon, it is best for meat especially the ones like beef and lamb. Cabernet Sauvignon. This is a stronger version of Merlot as it has more tannin and better aging aptitude. It can taste like blackberries, plums, and black currants. Since it is aged in oak, it can also take on vanilla, chocolate, and coffee flavors. Pinot Noir. It is a subtle wine that tastes of red fruits like cherries, raspberries, and strawberries. These become more complex with age and develop earthy notes such as that of mushroom and decaying leaves. This wine is very versatile as it can be taken with poultry, salmon, meat, and vegetable dishes. It is described as big, bold, and spicy with rich aromas of leather and black fruit. It pairs well with lots of food but most especially with grilled meat. Best Wine Cooling Refrigerators Comparison Chart Number of Shelves

No comments:

Post a Comment