首页 \ 问答 \ 根据中文名取英文名

根据中文名取英文名

根据中文名取英文名 名字:张世磊 谢谢了
更新时间:2022-11-02 19:11

最满意答案

将数据存储在数据库中的优点是利用数据库安全机制并降低维护成本(备份,...)。 它的缺点是增加了数据库负载和连接消耗(对于每个连接许可的数据库服务器而言,这可能是昂贵的)。 如果您使用的是SQL Server 2008, FILESTREAM可能是一个不错的选择。

顺便说一下,对于Web应用程序(或任何其他可能需要流式传输数据的应用程序),将数据存储在数据库之外通常更明智。


The advantage of storing data in the DB is taking advantage of DB security mechanisms and reducing maintanence cost (backups, ...). The disadvantage of it is increasing DB load and consuming connections (which might be expensive for per-connection licensed database servers). If you are using SQL Server 2008, FILESTREAM might be a nice alternative.

By the way, for Web apps (or any other apps that might need streaming the data), it's usually more sensible to store data outside DB.

相关问答

更多
  • 将数据存储在数据库中的优点是利用数据库安全机制并降低维护成本(备份,...)。 它的缺点是增加了数据库负载和连接消耗(对于每个连接许可的数据库服务器而言,这可能是昂贵的)。 如果您使用的是SQL Server 2008, FILESTREAM可能是一个不错的选择。 顺便说一下,对于Web应用程序(或任何其他可能需要流式传输数据的应用程序),将数据存储在数据库之外通常更明智。 The advantage of storing data in the DB is taking advantage of DB s ...
  • echo hash('sha512', 'hash_string', true); 第三个参数是raw_output :当设置为TRUE时,输出原始二进制数据。 ( doc )。 由于六角形与二进制值之间存在一对一的对应关系,因此不会失去“唯一性”。 长度始终为64字节字符串。 但是如果你用六边形写哈希,那么它将是128个字符, 而不是512个字符。 echo hash('sha512', 'hash_string', true); The third argument is raw_output: w ...
  • 你应该使用Convert.ToBase64String(); string json3 = "{'value1':" + value+ ",'value2':" + value+ ",'value3':" + value+ ",'PartyDoc':" + Convert.ToBase64String(bytes) + "}"; 然后在另一边你可以使用Convert.FromBase64String(); You should use Convert.ToBase64String(); string js ...
  • 使用准备好的查询。 我将使用PDO风格的语法。 private function writeFile($fid, &$uData = null, $iFileSize = null) { $stmt = $this->prepare( "UPDATE " . self::$dbTableNameFat . " SET data = :data, size = :size WHERE fid = :fid"); $stmt->execute(array( 'da ...
  • 文件或libmagic是一个很好的开始。 file or libmagic is a good place to start.
  • 根据我们的评论,MATLAB一次读取4个整数的方式是little-endian格式,而MNIST数据库文件的文件格式是big-endian 。 因此,当我们读入文件的前四个字节时,字节是0x00, 0x00, 0x08, 0x03正如我们所期望的那样。 但是,MATLAB会将其读取为0x03, 0x08, 0x00, 0x00 。 将此转换为整数时,我们实际上将得到50855936 ,这不是我们想要的。 解决这个问题的方法是,当我们需要一次读取几个字节时,我们需要确保指定uint8数据类型。 这会将每个字节 ...
  • 汉明距离是一个度量,因此它满足三角不等式。 对于数据库中的每个位串,您可以将它的汉明距离存储到某个预定义的常量位串。 然后,您可以使用三角形不等式来过滤掉数据库中的位串。 所以我们说吧 C <- some constant bitstring S <- bitstring you're trying to find the best match for B <- a bitstring in the database distS <- hamming_dist(S,C) distB <- hamming_d ...
  • 每次二进制文件更改时(甚至几个字节),哪些选项将存储全新的二进制blob。 他们全部。 所有blob(实际上,repo中的所有对象)只要是“松散的对象”,就会“完整”(或多或少)存储。 用它们做的唯一事情就是给它们一个标题并用压缩压缩它们。 然而,与此同时,松散的物体最终被组合成“包”。 Git对包中的文件进行增量压缩:请参阅git二进制差异算法(增量存储)是否标准化? 。 基于那里的答案,你最好不要“预压缩”二进制文件,这样包文件增量算法可以找到长串匹配的二进制数据。 git是否比压缩数据更好地解压缩二进 ...
  • 我刚刚在我的SDL Tridion 2011 SP1 HR1环境中运行了一些测试,并且当我的二进制文件在文件系统上时,可以确认填充了BinaryData (即非空并包含值)。 我使用了您的代码示例,并添加了在我的网站页面上使用的二进制文件的有效URI。 我不确定我们的环境之间有什么不同,我唯一的想法是检查BinaryMeta是否已部署到您的Broker数据库(尽管如果这有所不同,我认为这是一个错误)。 我的cd_storage.xml节点的ItemTypes节点如下:
  • 您通常不希望在关系数据库中存储大型文件 - 这不是它们的设计目标。 我还建议不要使用NoSQL解决方案,因为它们通常也不是为此设计的,尽管有一些例外(见下文)。 您最后的想法是将文件存储在文件系统上(请注意,这是文件系统的设计目的;)很可能是正确的方法。 根据您的可伸缩性要求,这可能有点困难,但您可能希望使用以下其中一项: SAN。 SAN在网络中提供冗余,高可用性的存储解决方案。 可以将多个服务器连接到SAN提供的存储,并在彼此之间共享文件。 请注意,此解决方案通常面向企业,并且可靠地实施起来相当昂贵(您 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)