摘要:
项目启动增加定时器手动清理 转自 http://www.cnblogs.com/qinyi173/p/7098127.html 阅读全文
摘要:
public class ImageController : ApiController { //上传图片 [Route("image_upload")] [HttpPost] public Task ImgUploadTask() { // 检查是否是 multipart/form-data if (!Request.Content.IsMimeMultipartContent("f... 阅读全文
摘要:
最直观的区别: GET把参数包含在URL中,POST通过request body传递参数。 标准答案: GET在浏览器回退时是无害的,而POST会再次提交请求。 GET产生的URL地址可以被Bookmark,而POST不可以。 GET请求会被浏览器主动cache,而POST不会,除非手动设置。 GE 阅读全文
摘要:
目的:通过三种不同的分页查询语句的写法来比较其性能。环境:windows server 2003 sp2 ,sqlserver2008。数据准备:100万条数据。说明:下列sql语句中 pagesize表明每页记录条数 pageindex表示页码 table表示表明,id表示table表中的主键。方法1:select top pagesize * from table where id not in (select top (pagesize * (pageindex -1)) id from table)方法2:select top pagesize * from table where i 阅读全文