好吧,我们在SQL Server 2008中有关键事务数据库及其处于完全恢复模式.我们在两个不同时区的两个不同数据中心有两个不同的服务器.我正在尝试使用各种选项设置使数据库尽可能最新的最佳方法.数据库目前只有1.5GB,预计每6个月增长1GB.
我们使用一个简单的解决方案,使用SMO在凌晨1点创建FULL备份,然后每15分钟进行一次差异备份.我们将这些数据传输到作为从属服务器的其他服务器,并在从属服务器上恢复数据.因此,与当前的DB相比,所有从站运行时间均为15分钟,因此在发生崩溃的情况下,我们将获得数据,直到最后15分钟.
现在,我想将此解决方案与复制和更改跟踪进行比较.
复制和更改跟踪都会在数据库中添加一些额外的元数据来执行它们正在执行的所有操作,并且几乎不会使用cpu使 但是,与Diff Backup相比,它们不会对CPU造成更多负担(据我所知).我假设Diff Backup将保留一些等待或增加一些待处理队列的事务,这可能会在用户使用它时造成延迟或丢失信息.
我需要知道Diff Backup每15分钟会在服务器上加载更多吗?或者,当交易处理时,每15分钟使用差异备份真的不建议吗?
注意:事务仅应用于主服务器,并且它们使用备份还原应用于从属服务器.日志传送不会发送架构更改,如果它停止工作我们无法获得任何错误通知,在我们自己的自定义解决方案中,我们通过电子邮件发送日志对我们有帮助的我们
我创建了WCF,我使用wsHttpBinding和MTOM作为消息传输,认证为"Windows".
现在我的服务不是当前的SECURE,它是普通的HTTP,在自定义端口上运行.
WCF的wsHttpBinding的Windows身份验证是否安全?任何人都可以看到密码或通过网络跟踪猜测?
环境信息:
这是app.config
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="metaAndErrors">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
<serviceAuthorization impersonateCallerForAllOperations="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service name="CustomServiceHost.CustomService"
behaviorConfiguration="metaAndErrors"
>
<endpoint address="" binding="wsHttpBinding"
bindingConfiguration="wsHttpLargeBinding"
contract="CustomServiceHost.ICustomService"/>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:89/CustomService" />
</baseAddresses>
</host>
</service>
</services>
<bindings>
<wsHttpBinding>
<binding
name="wsHttpLargeBinding" messageEncoding="Mtom"
maxReceivedMessageSize="2147483647">
<readerQuotas maxArrayLength="512000"/>
</binding>
</wsHttpBinding>
</bindings>
</system.serviceModel>
Run Code Online (Sandbox Code Playgroud)
以下是在运行时完成的客户端配置,
WSHttpBinding binding = new WSHttpBinding();
binding.Security.Message.ClientCredentialType
= MessageCredentialType.Windows;
binding.Security.Mode = SecurityMode.Message;
binding.MessageEncoding = …Run Code Online (Sandbox Code Playgroud) 案例:e是类型HtmlElement而不是css selector
我在谈论任何属性,而不仅仅是标准允许的属性,atom-type或者data-atom-type,无论名称是什么,它是否可以在没有jQuery的情况下工作?
我怀疑$(e).attr(name,value)它太慢了,首先它是创建一个完整的jQuery对象 ($(e) !== $(e) // two objects are not same)(jsPerf:http://jsperf.com/jquery-attr-vs-native-setattribute/28 )然后它调用某些检查,然后设置值,其中大多数浏览器轻松支持e.setAttribute.
有没有更换任何问题$(e).attr(name,value)来e.setAttribute(name,value)?
IE8支持setAttribute根据MSDN文档.是否有任何移动浏览器或任何不支持它的浏览器?
最终我想提高我的JavaScript框架的性能,最初我们广泛使用jQuery来实现其跨浏览器DOM功能.
我们现在已经明白,除非你正在使用css selector,否则attr,val,text当你有实例时,大多数函数都可以用它们的直接DOM计数器部分进行更好的调用HtmlElement.
我试图通过使用"QDDisplayWaitCursor"函数显示等待光标(旋转彩虹轮),但我得到一个警告,"QDDisplayWaitCursor"已被弃用,但是一切运行正常,但我想用这个函数的适当替代品替换它但我没有找到任何谷歌的结果,也没有找到苹果文档.
我有一个循环,实际上等待一些进程完成一个Job并返回结果.
我MyRestClient.FetchResult(id)和MyRestClient.FetchResultAsync(id)两个提供给我,从一些远程服务获取结果并返回布尔值,如果它是完整的.
public class StatusController: ActionController {
public ActionResult Poll(long id){
return new PollingResult(()=>{
return MyRestClient.FetchResult(id) == SomethingSuccessful;
});
}
}
public class PollingResult : ActionResult{
private Func<bool> PollResult;
public PollingResult(Func<bool> pollResult){
this.PollResult = pollResult;
}
public override void ExecuteResult(ControllerContext context)
{
Response = context.HttpContext.Response;
Request = context.HttpContext.Request;
// poll every 5 Seconds, for 5 minutes
for(int i=0;i<60;i++){
if(!Request.IsClientConnected){
return;
}
Thread.Sleep(5000);
if(PollResult()){
Response.WriteLine("Success");
return;
}
// This is a comet, so we need to
// …Run Code Online (Sandbox Code Playgroud) .net ×1
asp.net-mvc ×1
async-await ×1
asynchronous ×1
backup ×1
c# ×1
cocoa ×1
css ×1
html ×1
javascript ×1
jquery ×1
objective-c ×1
replication ×1
sql-server ×1
tracking ×1
wait ×1
wcf ×1
wcf-binding ×1
wcf-security ×1
windows ×1