后端环境部署笔记

安装Ubuntu14TLS Server 下载Ubuntu14TLS安装镜像 http://www.ubuntu.com/download/server 挂载虚拟机启动安装,语言要选en 更换apt源,替换文件 /etc/apt/sources.list 安装tokumx https://www.percona.com/doc/percona-tokumx/installation_from_packages.html 1

SQL Server查询性能优化补充

使用SQL Profiler捕获Duration过大的查询。 在SQL管理器,查看实际发生的逻辑读等。 1 2 3 4 5 DBCC DROPCLEANBUFFERS DBCC FREEPROCCACHE SET STATISTICS profile ON SET STATISTICS io ON SET STATISTICS time ON

SQLBulkcopy快速进行实体数据导入

本文引用了来自 http://elegantcode.com/ 的代码。 大家经常抱怨EF插入批量数据非常慢,可以简单的通过设置: 1 2 context.Configuration.AutoDetectChangesEnabled = false; context.Configuration.ValidateOnSaveEnabled = false; EF6也可以用 1 DbSet.AddRange() 来优化性能,但有的同学觉得

在C#中使用sqlite+EF6搞定本地存储

Nuget:Install-Package System.Data.SQLite.EF6 配置文件(注意有坑,自动生成的配置文件是没法用的): 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

Typecho微调

文章和页面的链接样式设置 进入后台>设置>永久链接,选择自己喜欢的进行设置。记得要在服务器上配置好伪静态规则。 使用多说代替原生评论

适合孩子们的100部BBC纪录片

《恒河》 《活力星球》 《地平线:超大质量黑洞》 《百慕达三角洲之谜》 《野性加勒比》 《星际漫游》 《探潜鲨鱼火山 》 《神秘的玛雅》 《玛雅地底之谜》 《冷

小朋友的书单

图画书 《猜猜我有多爱你》 《是谁嗯嗯在我头上》 《我不知道我是谁》 《逃家小兔》 《云朵面包》 《斯凯瑞金色童书》 《鹅妈妈童谣》 《我想吃一个小孩》 《爱

Best Practices for Restful Api

转载存档 本文地址: https://www.oschina.net/translate/best-practices-for-a-pragmatic-restful-api 原文地址: http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api 数据模型已经稳定,接下来你可能需要为web(网站)应用创建一个公开的API(应用程序编程接口)。需要认识到这

SQL Server表空间统计

1 2 3 4 5 6 7 8 9 10 11 create table #Data(name varchar(100),row varchar(100),reserved varchar(100),data varchar(100),index_size varchar(100),unused varchar(100)) declare @name varchar(100) declare cur cursor for select name from sysobjects where xtype='u' order by name open cur fetch next from cur into @name while @@fetch_status=0 begin insert into #data exec sp_spaceused @name print @name fetch next from cur into @name end close cur deallocate cur create table #DataNew(name varchar(100),row

Nginx配置

##关键文件 etc/nginx/conf.d/ 目录存放各站点的配置 etc/nginx/nginx.conf nginx的配置 为了方便查找,在conf.d目录中的文件使用域名倒过来写的方式,比如*“com.ibm.