John Carlson wrote:

Miles wrote:
> For the most part, if you want to retrieve JSON data, you need to use some protocol - the RESTful model is to address the data with a URL, and use an HTTP GET. If you want to upload or replace some data, you use HTTP PUT, and to delete it you use HTTP DELETE. That's about as simple as you can get.

What I am saying is simple is TOO SLOW, especially when dealing with individual ids. Why are you rejecting me?


REST doesn't necessarily mean that you replace each item individually, you can use RESTful interfaces to replace collections of items in a single transaction. If you update 100 rows of an SQL database, and use 100 transactions to do it, that will be pretty slow too. If you replace the rows in a single transaction, you get different performance. Similarly, if you replace 100 key-value pairs with 100 transactions, you'll be a lot slower than if you update the same data structure with a single transaction containing a list of all 100 KVPs.

"REST is slow" is a meaningless statement.

--
In theory, there is no difference between theory and practice.
In practice, there is.   .... Yogi Berra

_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc

Reply via email to