Giter Site home page Giter Site logo

Comments (11)

ptaoussanis avatar ptaoussanis commented on August 18, 2024

Hi Ricardo,

The breaking change you have in mind sounds good to me, thanks for checking.

from faraday.

ricardojmendez avatar ricardojmendez commented on August 18, 2024

It looks like update-table's implementation right now is very throughput-specific, including mapping the update call on a series of throughput increase steps and returning the last one executed.

Is there a reason for this? I'm going through the referenced page but don't see a reason why the update request would be executed in steps, only the explanation for the decrease limit in a 24 hour period.

from faraday.

ptaoussanis avatar ptaoussanis commented on August 18, 2024

Was the case previously that large throughput increases needed manual steps. Not sure if that's still the case or not. If not, that code's vestigial and can be removed.

from faraday.

ricardojmendez avatar ricardojmendez commented on August 18, 2024

Perfect. I'll see about removing it and running some tests against an actual live instance, since I've read some remarks that the local instance disregards throughput settings (it referred to global secondary indexes, but I expect is a general characteristic).

from faraday.

ptaoussanis avatar ptaoussanis commented on August 18, 2024

Ahh yes, limits like that would only apply to a live cloud instance. Not sure if this particular limit still exists though.

from faraday.

ricardojmendez avatar ricardojmendez commented on August 18, 2024

No problem, I'll test. If the limits no longer exist then things would be much simpler, since I can just unify all the table updates - otherwise it'd be best to keep separate update-table and update-table-throughput functions.

from faraday.

ricardojmendez avatar ricardojmendez commented on August 18, 2024

Testing against a live cloud instance, I can get the update to throughput to apply in a single step. Will prune that old code.

from faraday.

ptaoussanis avatar ptaoussanis commented on August 18, 2024

Just confirming: that's for a large increase, yes? I.e. more than 2x or 4x the previous value?

from faraday.

ricardojmendez avatar ricardojmendez commented on August 18, 2024

Correct, tried it going from {:read 1 :write 1} to {:read 16 :write 16} without stepping. No error and update returned the expected values

; First increase
{:lsindexes nil,
 :gsindexes nil,
 :name :temp_table_1450109809826,
 :throughput
 {:read 16,
  :write 16,
  :last-decrease nil,
  :last-increase #inst "2015-12-14T16:16:58.340-00:00",
  :num-decreases-today 0},
 :prim-keys {:artist {:key-type :hash, :data-type :s}},
 :size 0,
 :status :active,
 :item-count 0,
 :creation-date #inst "2015-12-14T16:16:49.943-00:00",
 :indexes nil}
; Second increase
{:lsindexes nil,
 :gsindexes nil,
 :name :temp_table_1450109809826,
 :throughput
 {:read 256,
  :write 256,
  :last-decrease nil,
  :last-increase #inst "2015-12-14T16:17:03.542-00:00",
  :num-decreases-today 0},
 :prim-keys {:artist {:key-type :hash, :data-type :s}},
 :size 0,
 :status :active,
 :item-count 0,
 :creation-date #inst "2015-12-14T16:16:49.943-00:00",
 :indexes nil}

from faraday.

ptaoussanis avatar ptaoussanis commented on August 18, 2024

Great, happy to see that they've removed that limit- thanks for picking up on this.

from faraday.

ricardojmendez avatar ricardojmendez commented on August 18, 2024

Closing along with #80

from faraday.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.