Export data from SQL Server as fast as possible
Exporting large volumes of data from SQL Server is a common requirement for analytics, data migration, backups, or data sharing. However, not all export ...
Temperatures taken from this website: https://www.historique-meteo.net/france/rh-ne-alpes/lyon/
This dataset is updated monthly to be updated early september with august temeratures (to be updated ...
... rt pandas as pd print(f"Pandas version: ")
%load_ext Cython import cython print(f"Cython version: ")
import numba print(f"Numba version: ") from numba import jit
import matplotlib import matplotlib. ...
... local minimum is generally sought using a heuristic.
The algorithm
Here is a simple description of the algorithm taken from the book "Data Science from Scratch" by Joel Grus (O'Reilly):
Start w ...
... anger .alert-link { color: #843534; } @-webkit-keyframes progress-bar-stripes { from { background-position: 40px 0; } to { background-position: 0 0; } } @keyframes progress-bar-stripes ...
... 2005 + IF (SELECT count(*) FROM tempdb.sys.objects WHERE name = '##TABLESIZES_ALLDB')=1 BEGIN DROP TABLE ##TABLESIZES_ALLDB; END
CREATE TABLE ##TABLESIZES_ALLDB ( snapdate datetime, srv nvarchar(1000), sv ...
Nagios is a great free tool to supervize many many things in IT. SQL Server is one appliation that can be monitored by Nagios. A great plugin checkmssqlhealth contains many checks from performance counters ...
... rchar(2),NUMERICPRECISION) +''),'' + COLUMNNAME + '')),''''µ'''')''
ELSE ''ISNULL(RTRIM('' + COLUMN_NAME + ''),''''µ'''')''
END + ''+''+''''''§''''''+''+''
<span class="highlight">FROM</span> INFORMATION_SCHEMA. ...
... EXPTRANSFORM.OUTGRP1.LINENUMBER */ "LINENUMBER" FROM "STIFD01GROUP2INSU" "STIFD01GROUP2INSU" WHERE ( "STIFD01GROUP2INSU"."MTBATCHID" = 2052 ...
... @pstrDBNameFrom SYSNAME, @pstrFQNRestoreFileName VARCHAR(255) = '', @pDebug BIT=0 AS BEGIN DECLARE @vstrDBFilename VARCHAR(100), @v_strDBLogFilename VARCHAR(100), ...
... 00ms par requête me direz vous, sauf que cette requête était lancée plusieurs dixaines de fois pour certains écrans.
Voici la requête :
SELECT acc.id, acc.name, conreportsto.firstname, conreportsto.lastname FROM cont ...
... segmentondisksizeMB FROM sys.indexes AS i JOIN sys.partitions AS p ON i.OBJECTID = p.OBJECTID JOIN sys.columnstoresegments AS css ON css.hobtid = p.hobtid WHERE ...
... umeric', 'root\CIMV2', Concatenate('select Capacity from win32_Volume where drivetype=3 and freespace=', String(Multiply(@VolumeFreeSpace, 1024))))))
Ici on utilise une astuce afin de récupérer le pourcent ...
... lonne rowid.
Cette colonne peut-être interrogé via sql
exemple :
requête récupérant les 5 dernières lignes modifiées dans une table SELECT ROWIDTOCHAR(ROWID) rowid, orarowscn, num_ ...
... nées de la dernière éxécution et non des statistiques cumulées.
obtenir un plan d'éxécution étendu grace au hint gatherplanstatistics
SQL>SELECT /+gatherplanstatistics/ COUNT(*) FROM
soh_dev.sx3_gac ...
Avec cette petite requête SQL que vous pouvez rediriger vers une table, il sera facile de créer 10 ans de données pour une table de temps sans avoir recours au PL/SQL.
requête calendrier Oracle SELECT ...
Sans avoir besoin d'un RAC (Real Application Cluster), d'un grid ou d'un exadata, Oracle fourni en standard un mécanisme de parallelisme très poussé.
Le parallelisme peut se retrouver dans les requêtes ...
... te) RETURN NUMBER RESULTCACHE RELIESON (TransCurrenciesDate) IS result NUMBER BEGIN SELECT ChangeRate INTO result FROM TransCurrenciesDate WHERE SrcCurrId = iSrcCurrId AND TgtCurrId=i_TgtCu ...
... ne doit pas être utilisé sur des objets distants)
Utiliser le hint "result_cache"
Utilisation du hint RESULTCACHE SELECT /*+ RESULTCACHE */ cod_moi, SUM(mtt_vte_brt), SUM(mtt_vte_net), ...
... colonnes :
Prenons un exemple de requête :
SELECT * FROM emp WHERE TYPE='Manager'
CURSOR_SHARING Consommation Mémoire Performance de la requête Comportement de l'optimiseur
...