sqlsrv drivers slow in codeigniter?

前端 未结 5 860
别跟我提以往
别跟我提以往 2020-12-21 04:03

I have installed the latest version of CI 2.1.3

Now after running a query, I am getting a very slow response time for something very simple such as:

         


        
5条回答
  •  情歌与酒
    2020-12-21 04:20

    What is your connection string? You can specify the "network protocol" explicitly, which somtimes can affect speed.

    http://www.connectionstrings.com/articles/show/define-sql-server-network-protocol

    "Provider=sqloledb;Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=pubs;User ID=myUsername;Password=myPassword;"

    By specifying the IP address, the port number (1433) and the Network Library, you are providing a very granular connection string. Your details may vary of course.

    Alot of times, you don't need this. But I've been on a few client trips where this was the magic dust.

提交回复
热议问题