Recent

Author Topic: Memory resident database with locate  (Read 7959 times)

liewald

  • Full Member
  • ***
  • Posts: 144
Memory resident database with locate
« on: February 14, 2010, 06:27:47 pm »
Does anyone have any recomentations for a decent memory resident database with a functioning locate statement. I've tried installing rx but it's just killing the IDE.

Help would be greatly appreciated
 :D

tatamata

  • Hero Member
  • *****
  • Posts: 804
    • ZMSQL - SQL enhanced in-memory database
Re: Memory resident database with locate
« Reply #1 on: February 14, 2010, 08:43:31 pm »
You can use BufDataset. Locate works for it...

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: Memory resident database with locate
« Reply #2 on: February 15, 2010, 01:07:56 am »
You can you use TSqlite3Dataset with a memory database:

Sqlite3Dataset.FileName := ':memory:';
Sqlite3Dataset.TableName := 'MyTable';
Sqlite3Dataset.FieldDefs.Add('Field1', ftString);
Sqlite3Dataset.CreateTable;
Sqlite3Dataset.Open;
//data manipulation
Sqlite3Dataset.Close; 

liewald

  • Full Member
  • ***
  • Posts: 144
Re: Memory resident database with locate
« Reply #3 on: February 16, 2010, 10:16:38 am »
Thanks Guys got it, used bufdataset  :D

bentrem

  • Newbie
  • Posts: 4
Re: Memory resident database with locate
« Reply #4 on: April 15, 2010, 03:18:38 am »
*1st post; new to FP/Lazarus*

Is BufDataset *nix only?
My text analysis project involves 182K keywords; 5K texts; 230K pages ... my new box (running XP Pro) has 6Gig DDR3. I'm thinking this is the way to go.
Is there a Windows analog?

(I'm almost trolling for a substantial reason to install Linux.)

TIA
ben

tatamata

  • Hero Member
  • *****
  • Posts: 804
    • ZMSQL - SQL enhanced in-memory database
Re: Memory resident database with locate
« Reply #5 on: April 15, 2010, 05:26:18 am »
No, it is not Unix only.
In fact, in recent snapshot downloads, the visual wrapper for BufDataSet component is already included in the default installation (see under Data Access tab). DOwnload daily snapshot, so you will see for yourself.
See also http://wiki.lazarus.freepascal.org/How_to_write_in-memory_database_applications_in_Lazarus/FPC#TBufDataSet
which I wrote while there was no such wrapper, but it could still be helpful.

davesimplewear

  • Sr. Member
  • ****
  • Posts: 321
    • Davids Freeware
Re: Memory resident database with locate
« Reply #6 on: April 15, 2010, 06:51:51 am »
One reason to switch would be only 3gb memory for xp, the rest is wasted.

Regards
Dave :)
All things considered insanity seems the best option

bentrem

  • Newbie
  • Posts: 4
Re: Memory resident database with locate
« Reply #7 on: April 15, 2010, 07:48:33 pm »
One reason to switch would be only 3gb memory for xp, the rest is wasted.
I didn't build this box with programming in mind, but all that sand may come in handy! (It's custom for ArmA2, the idea being to have a 3Gig RAM disk.)

 

TinyPortal © 2005-2018