replica (148)


Full complete MySQL database replication? Ideas? What do people do?

Full complete MySQL database replication? Ideas? What do people do?

Currently I have two Linux servers running MySQL, one sitting on a rack right next to me under a 10 Mbit/s upload pipe(main server) and another some couple of miles away on a 3 Mbit/s upload pipe(m…


improved collection Iterator

Personally, I find the range of functionality provided by java.util.Iterator to be fairly pathetic. At a minimum, I'd like to have methods such as: peek() returns next element without moving the ite…


Help with writing a SQL query for Nested Sets

I'm storing a tree in a DB using nested sets. The table's fields are id, lft, rgt, and name. Given a node ID, I need to find all of its direct children(not grandchildren) that are themselves leaf…


Restricting T to string and int?

I have built myself a generic collection class which is defined like this. public class StatisticItemHits<T>{...} This class can be used with int and string values only. However this public class St…


Configuration File as Embedded Resource

Does anyone out there have an example of using an embedded Configuration File in either VB.NET or C#? I understand how to embed the configuration file, but what is the best method to access it afterw…


Why is my Access database not up-to-date when I read it from another process?

In my application I do the follwing things: Open a Access database(.mdb) using Jet/ADO and VB6 Clear and re-fill a table with new data Close the database Start another process which does something…


Unexpected table scan for id != id

One application causes a heavy load on our Sql Server 2005 database. We don't control the application that runs this query hundres of times a minute: select id,col1,col2,col3 from table where id != i…


Sql insert query performance

I want to insert n records into a single table. There may be many concurrent users and they may insert/update/select data from this table. What is better way to insert in a such table say 1000 record…


Restrict access to.NET assembly?

Is there a way to have a.NET assembly accessible for only authorized sources? I mean I want to have a DLL that contains components, but I don't want anyone to be able to use these components but the…


Set Relative path in file SetUp and Deployment

How can the relative file path be set in setup and deployment project. So that if I take the poject to another machine it will build…





set mongodb config replication not node example how the file