title: How much it takes the updateTable operation? I need to update 800.000 items and I want to disable the stream before each update and enable it after
body: <p>This is an code example:</p>
  <pre><code>var dynamodb = new AWS.DynamoDB();
          var paramsEnable = {
            TableName: 'yourTableName', 
            StreamSpecification: {
              StreamEnabled: false
            }
          };
          
          dynamodb.updateTable(paramsDisable, function(err, data) {
            if (err) console.log(err, err.stack); // an error occurred
            else     console.log(data);           // successful response
          });
          //  
          //My code here
          //
          var paramsEnable = {
            TableName: 'yourTableName', 
            StreamSpecification: {
              StreamEnabled: true    
            }
          };
          
          dynamodb.updateTable(paramsEnable , function(err, data) {
            if (err) console.log(err, err.stack); // an error occurred
            else     console.log(data);           // successful response
          });
  </code></pre>
  <p>I want to know how can I do it in a beter way? to add 2 updates after each updateItem operation is not the best..And I need to disable the stream because it will invoke another 4 functions.Thank you!</p>