Ignore:
Timestamp:
Jan 26, 2011, 5:45:02 AM (13 years ago)
Author:
Sam Habiel
Message:

BMX version bumped to 2.3.
New dll
BMXNetConnectInfo: Event polling from RPMS/VISTA is now async. BMX Writer lock removed.
BMXNetLib:

  1. Application context changes are now suppressed. Developer must make sure that his/her application has all the needed BMX methods. This was done for performance enhancement as application context changes are very expensive in network time.
  2. Locks are implemented at the TransmitRPC with a very simple Lock(this) which works very well.

RPMSDb: See #1 for BMXNetLib. All context changes are now suppressed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/RPMSDb.cs

    r822 r1082  
    8787                {
    8888                        string sRPC;
    89                         string sOldContext = m_rpx.AppContext;
    90 
    91                         if (m_rpx.AppContext != "BMXRPC")
    92                         {
    93                                 m_rpx.AppContext = "BMXRPC";
    94                         }
     89
     90            /* /* 3110109 -- smh Commented out for performance
     91            string sOldContext = m_rpx.AppContext;
     92
     93            if (m_rpx.AppContext != "BMXRPC")
     94            {
     95                m_rpx.AppContext = "BMXRPC";
     96            }
     97             */
    9598
    9699                        sRPC = "BMX UPDATE";
     
    98101                        m_sCmd = m_sCmd.Substring(nStart);
    99102                        string sResult = m_rpx.TransmitRPC( sRPC,  m_sCmd);
    100                        
    101                         if (sOldContext != m_rpx.AppContext)
    102                         {
    103                                 m_rpx.AppContext = sOldContext;
    104                         }
     103
     104            /* /* 3110109 -- smh Commented out for performance
     105            if (sOldContext != m_rpx.AppContext)
     106            {
     107                m_rpx.AppContext = sOldContext;
     108            }
     109             */
    105110
    106111                        resultset = new RPMSDbResultSet();
     
    113118                        string sRPC;
    114119                        string sParam;
    115                         string sOldContext = m_rpx.AppContext;
    116                         if (m_sQueryType == "SELECT")
    117                         {
    118                                 if (m_rpx.AppContext != "BMXRPC")
    119                                 {
    120                                         m_rpx.AppContext = "BMXRPC";
    121                                 }
     120            /* /* 3110109 -- smh Commented out for performance issues.
     121            string sOldContext = m_rpx.AppContext;
     122            */
     123            if (m_sQueryType == "SELECT")
     124                        {
     125                /*/* 3110109 -- smh Commented out for performance issues.
     126                if (m_rpx.AppContext != "BMXRPC")
     127                {
     128                    m_rpx.AppContext = "BMXRPC";
     129                }
     130                 */
    122131                                sRPC = "BMX SQL";
    123132                                sParam = m_sCmd;
     
    131140                        string sResult = m_rpx.TransmitRPC( sRPC,  sParam);
    132141                       
     142            /*
    133143                        if (sOldContext != m_rpx.AppContext)
    134144                        {
    135145                                m_rpx.AppContext = sOldContext;
    136146                        }
     147             */
    137148                       
    138149                        return sResult;
Note: See TracChangeset for help on using the changeset viewer.