1 Jul 2007 05:23
Re: Re: In Mem Query Performance
Hi All,
Pls find the sample test below,
A) Using Sqlite 3.3.17,SuSE9 version,8GB Ram,4 CPU machine,
1) Compile the generate the test data program and generate the data
2) Import the data to DB
3) Compile the perf Data program and then generate perf result.
4) Result for 100,000 records it takes 17 sec. Find one record at a time.
regards
ragha
<at> <at> 1) Program to generate the test data:
//Compile: g++ -g gen.cpp -o gen
#include <unistd.h>
#include <iostream>
#include <stdio.h>
#include <fstream>
using namespace std;
int main()
{
fstream fout("data.sql",ios::out);
fstream fout1("query.sql",ios::out);
//Schema
fout<<"create table test (serName text,doid text,primary key (serName,doid));"<<endl;
for(int j=0; j<100000;j++)
(Continue reading)
RSS Feed