循环中的迭代次数(Number of iterations in a loop)
为什么以下代码
for a=1:5:100 a = a+ 1; end
迭代20次?
a
每次迭代增加5,但在实际循环中也增加1。 99/6 = 16.5或17次迭代,为什么它会做20次?感谢您帮助了解for循环功能的工作原理。
Why does the following code
for a=1:5:100 a = a+ 1; end
iterate 20 times?
a
goes up by 5 every iteration, but also goes up by 1 in the actual loop. 99/6 = 16.5 or 17 iterations, so why does it do 20?Thanks for any help understanding how the for loop function works.
原文:https://stackoverflow.com/questions/23133396
满意答案
大部分真正大规模的网络媒体资源都使用分布式键值存储。 也就是说,3500万是大的,但并不那么大。 对于大多数现代数据库,您主要的两个扩展问题应该是吞吐量,并且当没有单个盒子可以包含整个数据库时会发生什么。 对于您选择使用的任何数据库,这两个问题都可以在一定程度上得到解决。 (缓存,复制,分片等)
直到你不能再使用MySQL。 那时,无论如何你都应该在面团中滚动,现在你有一个非常理想的问题。
Most of the truly large scale web properties use a distributed key-value store. That said, 35 million is large, but not that large. With most modern databases, your main two scaling worries should be throughput and what happens when no single box can contain your entire database anymore. And both of these problems can be solved to some degree for any database you choose to use. (Caching, replication, sharding, etc.)
Use MySQL until you can't anymore. At that point, you ought to be rolling in dough anyways and you now have a very desirable problem.
相关问答
更多什么是“大数据库”?(Just what is 'A big database'?)
大数据数据库(Big Data Database)
Django和直接的数据库操作(Django and direct database manipulation)
什么数据库用于大数据存储和操作?(What database to use for big data storage and manipulation?)
数据如何存储在数据库中?(How is data stored in a database?)
Linq和.Count大数据库(Linq and .Count big database)
MySQL海量数据操作处理(MySQL Massive Data Manipulation Processing)
如何存储大数据用于计算?(How to store big data for use in computation?)
Python大数据矩阵操作(Python Big Data Matrix manipulation)
数据库操作(Database manipulation)
相关文章
更多She’s Not Carrying A Handbag
Spark - A Fault-Tolerant Abstraction for In-Memory Cluster Computing
How to Start a Business in 10 Days
Create a Bootable MicroSD Card
Drupal Forums instead of phpBB or vBulletin: A casestudy
Python内建函数(A)
每日英语:Philippine Chapel Becomes a Medical Center
Become a Master Designer: Rule Three: Contrast, Contrast, Contrast
Securing Solr on Tomcat access using a user account
Stack Overflow Architecture Update - Now At 95 Million Page Views A Month
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!