List:Internals« Previous MessageNext Message »
From:Giuseppe Maxia Date:February 19 2007 12:47pm
Subject:Re: BLOB implementation for heap engine
View as plain text  
ciccettino@stripped wrote:
> Hello,
> I'm a senior student at university of Roma 3; I'm doing a thesis aiming to provide a
> better sinergy between Grass and MySQL (using the 
> fast all in memory engine); I found that heap engine doesn't support Gis Data because
> of the absence of Blob support, through which GIS 
> data are, at the moment, stored. I also found that blob data aren't supported because
> memory engine has a fixed row format, which is 
> incompatible with blobs.
[SNIP]

Hi,
This is not really an answer to your question, but an alternative route that you may want
to explore.
If you are after performance, instead of modifying the heap engine, you could use an
in-memory filesystem
to achieve your goal quickly and painlessly.
For example on a Linux OS, you could do the following:

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1              12G  4.1G  7.0G  38% /
devshm                506M     0  506M   0% /dev/shm
/dev/sda1             111G   85G   20G  81% /home

/dev/shm is the in-memory filesystem. To create a database there is straightforward:

$ mkdir /dev/shm/gis
$ ln -s /dev/shm/gis /usr/local/mysql/data/gis

$ mysql

mysql> use gis
mysql create table  (... , b_fld blob, p_fld point) engine = myisam;

and then you have a fully functional MyISAM table in RAM.

Best regards

Giuseppe


-- 
Giuseppe Maxia, QA Developer
MySQL AB, www.mysql.com
Thread
BLOB implementation for heap engineciccettino@tiscali.it19 Feb
  • Re: BLOB implementation for heap engineGiuseppe Maxia19 Feb
  • Re: BLOB implementation for heap engineIngo Strüwing19 Feb
Re: BLOB implementation for heap engineciccettino@tiscali.it1 Mar
  • Re: BLOB implementation for heap engineMark Callaghan1 Mar
    • Re: BLOB implementation for heap engineIngo Strüwing1 Mar
      • Re: BLOB implementation for heap engineIngo Strüwing1 Mar
  • Re: BLOB implementation for heap engineSergei Golubchik1 Mar
Re: BLOB implementation for heap engineciccettino@tiscali.it7 Mar
  • Re: BLOB implementation for heap engineIngo Strüwing8 Mar