in-memory

Changing the program flow when running under a debugger

Is there any way of detecting that a debugger is running in memory? and here comes the on Form Load pseudocode. if debugger.IsRunning then Application.exit end if Edit: The original title was "Detecting an in memory debugger" ...

Are there any in-memory databases that support computed columns?

We have a SQL 2005/2008 database that has a table with a computed column. We're using the computed column as a discriminator in NHibernate so having it in the database is proving to be very useful. In order to gain the benefits of faster integration tests, I'd like to be able to run our integration tests against an in-memory database su...

Online Test using ASP.NET / Linq

Hi, Working on a Online Test. I have 3 tables Questions Subject Topic I have made a Store Proc which return 25 Random Records. I want to store it in-memory and then display 1 question at a time with AJAX. I don't want to hit database 25 times as there are many users, I tried and store the result in viewstate but then I am not able ...

[sqlite/C++] Saving to disk an in-memory database

I made a database through sqlite in c++. The db has been created in memory (using the ":memory:" parameter insted of a filename), in order to have a very quick behavior. The database is created by the following lines: sqlite3* mem_database; if((SQLITE_OK == sqlite3_open(":memory:", &mem_database)){ // The db has been correctly cr...

Is the Workflow Foundation Storing State in Memory a Problem?

We have a contractor who has developed a system that uses the workflow foundation in .NET 3.5. One of my colleagues has concerns "around the workflow service storing state in memory and it possibly becoming out of sync with our underlying database". Are his concerns justified? ...

java in-memory on-the-fly class compilation (and loading)

I want to revisit an old question of mine about in-memory "compilation" of classes. Since about 1/2 a year have passed since I asked (and was somewhat answered), I'd like to re-raise the issue and see if something new would come up (so no, I don't consider this a duplicate). The old question can be found here: http://stackoverflow.com/q...

In-memory Java DB

Are there any DBs for Java that can be run in an embedded mode with some tables being stored in-memory while loading others from disk? H2 and JavaDB seem to be the two leaders for Java DBs and I know they both have an in-memory mode, but do they make you load the whole DB into memory or can you decide on a table-by-table basis? ...

c++ what in-memory compression library?

Hi! I already googled for in-memory compression and found quite a few libraries that offert this functionality. the zlib seems to be widely used - but it also seems to be quite old. I'm asking here whether there are newer, better alternatives. The data i want to compress in-memory are memorypools with size of a few megabytes (2-16 MB) ...

GridView with in-memory data: where to keep objects before they are saved?

I have a GridView with an ObjectDataSource. I want to let the user create several objects and then save them in one go. Background: I want to create an editor for a recipe. A recipe has base properties (like name and origin) and it has ingredients (like 100 g butter) I want the user to set all properties of the recipe and let him define...

In-memory unmarshalling, from an XML string and its schema stored in a string too, possible ?

Hello, Let's suppose I store an XML string into a variable String resp = new String("<?xml version=\"1.0\" encodin..."); and the schema definition related to this XML in another one: String xsd = new String("<xs:schema xmlns="http://schema-..."); do you think there is a way to validate and unmarshall 'resp' into objects (using JAXB...

managing associations over multiple requests in grails application

i am currently implementing a grails web-app, with a couple of complex forms where modifications on an association graph should be managed "in-memory" (that is the http session) as long as the entity or top-level domain object is not saved. e.g. top-to-bottom: Document -> Categories -> Sub-Categories ... requirement: modifications to ...

JavaCompiler from JDK 1.6: how to write class bytes directly to byte[] array?

So I recently learned of the new JavaCompiler API available in JDK 1.6. This makes it very simple to compile a String to a .class file directly from running code: String className = "Foo"; String sourceCode = "..."; JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); List<JavaSourceFromString> unitsToCompile = new ArrayList...

Open in memory XML string as an Excel workbook with out saving uisng windows Forms C#

Hi Guys, I have an excel string (which I built) in memory; the code looks something like this: public static void exportToExcel() { const string startExcelXML = "<xml version>\r\n<Workbook " + "xmlns=\"urn:schemas-microsoft-com:office:spreadsheet\"\r\n" + " xmlns:o=\"urn:schemas-m...

.net 2.0: What's the best way to deal with in-memory DataTables?

Hi, I have a csv file that I import into a DataTable. Furthermore I've created a TableAdapter with several queries. Is it somehow possible to execute the queries associated with the TableAdapter directly on the "in-memory" DataTable (doesn't seem so) or do I always have to write the imported DataTable to the database first and then exec...

Convert HTML string to MHT in memory

How can I convert an HTML string to MHT (MHTML) in memory. I do not want to use the local file system at all? I am using C#. ...

How to extract a set of records with a specific field from a Delphi in-memory data table.

I've an in-memory table that I've populated with data from a custom-format file. I'd like to use this as a repository for the data without duplicating it elsewhere. Each record has a special tag field which can be 1..30. I'd like to create up to 30 virtual 'tables' that I can supply to DBGrid's or DBChart's that look like they each conta...

Filter and Find from in-memory data sets

I have several medium-sized data sets in-memory that I need to be able to filter and find information from quickly. The data sets are small enough that I don't want to take the performance hit of going to a database every time I need an entry but large enough that I really need to index the data somehow. Currently, I'm using POCO object...

Can in-memory SQLite databases scale with concurrency?

In order to prevent a SQLite in-memory database from being cleaned up, one must use the same connection to access the database. However, using the same connection causes SQLite to synchronize access to the database. Thus, if I have many threads performing reads against an in-memory database, it is slower on a multi-core machine than the ...

C++ in-memory Key-Value stores

I'm looking for suggestions regarding in-memory key-value store engines or libraries, that have C++ interfaces or that are written in C++. I'm looking for solutions that can scale without any problems to about 100mill key-value pairs and that are compatible/compilable on linux and win32/64 ...

Need a storage solution that is scalable, distributed and can read data extremely fast and works with .NET

I currently have a data solution in RDBMS. The load on the server will grow by 10x, and I do not believe it will scale. I believe what I need is a data store that can provide fault tolerant, scalable and that can retrieve data extremely fast. The Stats Records: 200 million Total Data Size (not including indexes): 381 GB ...