[vwnc] Help putting SQLite in memory

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Help putting SQLite in memory

giorgiof
hi, All,
I have a question not VW related, but SQLite related.
I tested the SQLite implememtation in VW, and it works like a charm. Now, I would like to have an all in memory DB under windows.
I found lots of places on the WEB where they say that SQLite is very fast when work in memory, but I was not able to find a reference on how to make an in memory  SQLite DB under windows.
Someone has some advice?

Thanks in advance

Giorgio

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Help putting SQLite in memory

Mark Pirogovsky-3
Giorgio,

Normally when you open SQlite database you would provide the file name
and path in the "environment" for DBConnection. (something like:
c:\myDB\tes.db)

For the "In memory database" try to use the following environment string

":memory:"

keep in mind that all the data will be lost as soon as you disconnect
from your "in memory" database.


HTH

-- Mark Pirogovsky

giorgio ferraris wrote:

> hi, All,
> I have a question not VW related, but SQLite related.
> I tested the SQLite implememtation in VW, and it works like a charm.
> Now, I would like to have an all in memory DB under windows.
> I found lots of places on the WEB where they say that SQLite is very
> fast when work in memory, but I was not able to find a reference on how
> to make an in memory  SQLite DB under windows.
> Someone has some advice?
>
> Thanks in advance
>
> Giorgio
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Help putting SQLite in memory

giorgiof
Hi, Mark,
Thanks for your suggestion, I saw this for linux, but no one mentioned for windows. I try

thanks

Giorgio


On Mon, Feb 9, 2009 at 3:39 PM, Mark Pirogovsky <[hidden email]> wrote:
Giorgio,

Normally when you open SQlite database you would provide the file name and path in the "environment" for DBConnection. (something like: c:\myDB\tes.db)

For the "In memory database" try to use the following environment string

":memory:"

keep in mind that all the data will be lost as soon as you disconnect from your "in memory" database.


HTH

-- Mark Pirogovsky

giorgio ferraris wrote:
hi, All,
I have a question not VW related, but SQLite related.
I tested the SQLite implememtation in VW, and it works like a charm. Now, I would like to have an all in memory DB under windows.
I found lots of places on the WEB where they say that SQLite is very fast when work in memory, but I was not able to find a reference on how to make an in memory  SQLite DB under windows.
Someone has some advice?

Thanks in advance

Giorgio


------------------------------------------------------------------------

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Help putting SQLite in memory

giorgiof
HI, Mark,
Thanksssssssssss, it works!!!
I supposed it was something related to the Linux OS, not to SQLite (my knowledge of linux on a scale form 1 to 10 is -1000...).

Thanks for the suggestion again and nice to hear from you.
Ciao

Giorgio

On Mon, Feb 9, 2009 at 3:44 PM, giorgio ferraris <[hidden email]> wrote:
Hi, Mark,
Thanks for your suggestion, I saw this for linux, but no one mentioned for windows. I try

thanks

Giorgio



On Mon, Feb 9, 2009 at 3:39 PM, Mark Pirogovsky <[hidden email]> wrote:
Giorgio,

Normally when you open SQlite database you would provide the file name and path in the "environment" for DBConnection. (something like: c:\myDB\tes.db)

For the "In memory database" try to use the following environment string

":memory:"

keep in mind that all the data will be lost as soon as you disconnect from your "in memory" database.


HTH

-- Mark Pirogovsky

giorgio ferraris wrote:
hi, All,
I have a question not VW related, but SQLite related.
I tested the SQLite implememtation in VW, and it works like a charm. Now, I would like to have an all in memory DB under windows.
I found lots of places on the WEB where they say that SQLite is very fast when work in memory, but I was not able to find a reference on how to make an in memory  SQLite DB under windows.
Someone has some advice?

Thanks in advance

Giorgio


------------------------------------------------------------------------

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc




_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc