Skip to content

Instantly share code, notes, and snippets.

handler () {
set -e
# Event Data is sent as the first parameter
EVENT_DATA=$1
S3_BUCKET=$(echo $EVENT_DATA | jq '.Records[0].s3.bucket.name' | tr -d \")
FILENAME=$(echo $EVENT_DATA | jq '.Records[0].s3.object.key' | tr -d \")
LINECOUNT=2500000 #2.5m
<?xml version="1.0" encoding="utf-16"?>
<ShowPlanXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.2" Build="12.0.2569.0" xmlns="http://schemas.microsoft.com/sqlserver/2004/07/showplan">
<BatchSequence>
<Batch>
<Statements>
<StmtSimple StatementCompId="1" StatementEstRows="1" StatementId="1" StatementOptmLevel="TRIVIAL" CardinalityEstimationModelVersion="120" StatementSubTreeCost="0.0531493" StatementText="UPDATE [workflow_request] set [current_state_id] = @1,[status_id] = @2,[updated_by_id] = @3,[updated] = getdate() WHERE [id]=@4" StatementType="UPDATE" QueryHash="0xC1FA92AB094E0CDC" QueryPlanHash="0x6F2483D76A5DCB0F" RetrievedFromCache="true">
<StatementSetOptions ANSI_NULLS="true" ANSI_PADDING="true" ANSI_WARNINGS="true" ARITHABORT="true" CONCAT_NULL_YIELDS_NULL="true" NUMERIC_ROUNDABORT="false" QUOTED_IDENTIFIER="true" />
<QueryPlan DegreeOfParallelism="0" NonParallelPlanRe
<?xml version="1.0" encoding="utf-16"?>
<ShowPlanXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.2" Build="12.0.2569.0" xmlns="http://schemas.microsoft.com/sqlserver/2004/07/showplan">
<BatchSequence>
<Batch>
<Statements>
<StmtSimple StatementCompId="1" StatementEstRows="1" StatementId="1" StatementOptmLevel="TRIVIAL" CardinalityEstimationModelVersion="120" StatementSubTreeCost="0.0132842" StatementText="UPDATE [workflow_request] set [updated] = getdate() WHERE [id]=@1" StatementType="UPDATE" QueryHash="0x3488166C120CBB1A" QueryPlanHash="0x797FF8160AB416E9" RetrievedFromCache="true">
<StatementSetOptions ANSI_NULLS="true" ANSI_PADDING="true" ANSI_WARNINGS="true" ARITHABORT="true" CONCAT_NULL_YIELDS_NULL="true" NUMERIC_ROUNDABORT="false" QUOTED_IDENTIFIER="true" />
<QueryPlan DegreeOfParallelism="0" NonParallelPlanReason="NoParallelPlansInDesktopOrExpressEdition" CachedPlanSize="16" CompileTime="10" Compi
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": {"": "src/"}
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.2",
"doctrine/orm": ">=2.2.3,<2.4-dev",
$('#terminallist').dataTable( {
"bJQueryUI": true,
"sDom": 'T<"clear"><"H"lfr>t<"F"ip>',
"sPaginationType": "full_numbers",
"iDisplayLength": 10,
"bProcessing": true,
"bServerSide": true,
"bStateSave": true,
"sAjaxSource": "<?php echo url_for('@ajaxTable') ?>",
"aaSorting": [[ 1, "asc" ]],