Re: H2 Database With .NET Application

2010-11-05 Thread Ryan How
Hi, It looks like a directory permissions issue rather than a H2 specific issue. Can you try changing the database URL to something that the user will have write permission to? Not sure about the log file, someone else might be able to help you on that one :). Cheers, Ryan On 5/11/2010

Re: question that has something to do with backup

2010-10-06 Thread Ryan How
Hi, Is this a new change? I have an app using multi-threaded mode and the backup does not block other queries. Does it mean if the backup is synchronised on the database and the queries are synchronised on the session then the backup does not block queries? Or was it found dangerous that

Re: identity gets reset after Hibernate session is closed!

2010-09-24 Thread Ryan How
I don't know the answer, but howcome you don't want to close the database on exit? Shouldn't it always be closed when the JVM exits unless you want to use the database in a shutdown hook or something?. I don't understand the log, someone qualified will need to answer that one! :) Ryan On

Re: identity gets reset after Hibernate session is closed!

2010-09-24 Thread Ryan How
Hi, Closing the database doesn't lose data. It is good practice, like shutting down your computer rather than just killing the power. As is my understanding anyway :). I would try removing the DB_CLOSE_ON_EXIT option you are using. Then if that doesn't work I would check that auto create

Re: identity gets reset after Hibernate session is closed!

2010-09-23 Thread Ryan How
Hi, What is this Drop and re-create database schema on startup? Maybe that is resetting the sequence... And the MVCC setting is for row level locking, which from what some others have said seems to help with deadlock issues when using hibernate. Ryan On 24/09/2010 6:40 AM, mcevikce

Re: Exception ver 1.2.140

2010-08-30 Thread Ryan How
Hi, Is it a different client and server version? The error indicated version 1.1.119, not 1.2.140 ? I think somewhere along the line there was an issue where with different client and server versions. It outputs an error that doesn't make sense like what you are getting. So I think the

Re: (multiple) embedded database - memory consumption

2010-08-12 Thread Ryan How
Well it depends on how much data is them. I don't know if there is a way to calculate how much memory a database would use. I think it would be easier to create a database that would be similar to your requirements and see how much memory it uses. Then multiply by 20. Perhaps if you

Re: Best options for multiple clients accessing one database

2010-07-22 Thread Ryan How
Hi Peter, From my experience I would use MULTI_THREADED=TRUE if those updates you have are long running statements. ie. A single update may run for several seconds. Using multi-threaded will mean it doesn't block other threads accessing the database at the same time. Use MVCC if you are

Re: Best options for multiple clients accessing one database

2010-07-22 Thread Ryan How
I've been using it for a year in production and it works really well. for the usecase you described above? (webapp with embedded db + multiple clients) Yep. Works great. -- You received this message because you are subscribed to the Google Groups H2 Database group. To post to

Re: MULTI_THREADED bugs..

2010-06-29 Thread Ryan How
Hi Endre. Caused by: org.h2.jdbc.JdbcSQLException: File corrupted while reading record: type: 135. Possible solution: use the recovery tool; SQL statement: Just adding, I have also had this error a few times when using multithreaded. I have not been able to find a test case to reproduce

Re: MULTI_THREADED vs. MVCC

2010-06-16 Thread Ryan How
Hi Rami, Transaction is made up of one or more queries. So a long running transaction can be many small queries. When a query is running it will block everything else unless you have multithreaded on. A long running transaction (made up of many small queries) will not block other queries,

Re: The meaning of MULTI_THREADED

2010-05-27 Thread Ryan How
Hi, By Default H2 only allows access for a single thread to the database at a time internally. It doesn't seem to create performance issues because usually the disk IO is the bottleneck. Don't get confused between concurrent transactions and multi-threaded access. It only creates issues if

Re: The meaning of MULTI_THREADED

2010-05-27 Thread Ryan How
Kind of. I guess each query gets it's turn in sequence. Someone else can probably answer that better. I think with multi-threaded off, even read operations are done sequentially, not simultaneously. Yes, if multi-threaded is on then multiple queries can be running at the same time.

Re: The meaning of MULTI_THREADED

2010-05-27 Thread Ryan How
Yeah exactly. I probably didn't word it very well!. On 27/05/2010 7:32 PM, Wildam Martin wrote: On Thu, May 27, 2010 at 12:28, Ryan Howr...@exemail.com.au wrote: By Default H2 only allows access for a single thread to the database at a time internally. But that does not mean that I

Re: Serious version choice problem

2010-05-24 Thread Ryan How
Hi, I used to use version 1.1.117 without any issues. As I recall 118 and 119 had issues, so I never used them. I switched over to the new page store format because it handled large transactions better. I haven't had any issues with the page store once moving over. The early page store

Re: windows 7 and h2 database

2010-05-15 Thread Ryan How
Sure does. What specifically isn't working? On 15/05/2010 4:06 PM, spywx wrote: i have a question about if the h2 database is supported on windows 7 because i have been trying to use it on windows 7 but its not working while it worked with me fine on windows xp -- You received this

Re: WSDL for H2 Web service

2010-05-12 Thread Ryan How
Hi, Could you just set the h2 tcp server to run on port 80? Or does it need to be http traffic? Ryan On 13/05/2010 6:19 AM, Vinod wrote: Hi, I am trying to get the data access from a remote H2 thru port 80. As the web service is running on the server, it is possible for me to create a web

Re: H2 and rename file extension

2010-05-07 Thread Ryan How
You could set up a file extension association with your application. Because with the page store it is just the single file you could just use it as the document format for your application. I reckon it would be nifty :). I've seen it done with Access databases quite a bit. On May 7, 2:51

Re: Store in-memory database to disk

2010-05-06 Thread Ryan How
You can use the Script command to dump it to a file. Then start a new connection to a file database and use Runscript to recreate your database. So just like backing up and restoring using script / runscript, but when backing up use your in memory database, and when restoring use a file

File corrupted while reading record: type: 185 type: 25

2010-04-08 Thread Ryan How
Hi, I got the following error when running a query. And also the identical error again (identical stack trace and query) but type: 25. Repeating the query after this did not produce any errors. Running H2 version 128. Database created with H2 version 128. Connection settings are: Embedded

Re: How to use H2 from PHP or Rails?

2010-04-06 Thread Ryan How
I know nothing about PHP or Rails, but how would you use a Postgres database from them? Can't you just use the same thing for H2 and put it in PG mode? On 6/04/2010 5:11 PM, Wildam Martin wrote: On Sun, Apr 4, 2010 at 19:26, georgegeorge.st...@yahoo.com wrote: (ODBC seems to be the most

Re: Question about syntax for LIKE

2010-04-03 Thread Ryan How
I don't know about Oracle. But by default H2 is case sensitive on string matching. So if you want a case insensitive match on your like you need to use VARCHAR_IGNORECASE() for the column type. Or I think there are other ways too. But I got caught out on that one a few times. On 3/04/2010

Re: Driver Mismatch

2010-03-25 Thread Ryan How
Exception in thread main org.h2.jdbc.JdbcSQLException: Version mismatch, driver version is current client version: 5; minimum version: 6 but server version is {1} [90047-131] I'm no expert, but the error code indicates the version is 1.2.131 (the -131 is the version). So I would say your

Re: Issue with memory databases getting empty after reconnecting.

2010-03-23 Thread Ryan How
I haven't used in memory databases. But H2 usually closes a database after all connections to it close. So you either need to use a connection pool. Keep a single connection open as a control connection. Delay the closing of the database, or have it not close the database until you close the

Re: JVM to C in 1.2.132?

2010-03-22 Thread Ryan How
What I could interpret from this statistic: There are more C-Programmers than Java-Programmers. There are more SQLite users using ohloh.net than H2 users (I didn't know ohloh.net until now for instance). And I even could interpret that there is no need for a H2 in C because there is already

Re: Backup is blocking access to database

2010-03-07 Thread Ryan How
Hi, This feature is a bit dangerous. It is not completely tested with all scenarios. If you want to use it, I suggest to run your own test cases. That would be a LOT of test cases to cover all the possible scenarios I'm sure :) What would be another solution to stop the backup blocking

Re: On-Line backup documentation

2010-03-06 Thread Ryan How
*the |BACKUP|* statement does not lock the database objects, and therefore does not block other users I just wanted to add. For me it did block access to the database unless I was running in multi-threaded mode. Cheers, Ryan Dario Fassi wrote: Hi, Online backup it's a critical function

Re: ODBC Error

2010-02-22 Thread Ryan How
I've never been able to get it to work. I always have access say unknown error -4744 or something like that, do you get that also? fd wrote: When i connect a table from Access i see this error in the trace log of H2, and the operation fails Error: Table PG_ATTRDEF not found; SQL statement:

Re: Same url, different store types

2010-02-19 Thread Ryan How
Are you sure it isn't picking up an old version off the classpath? I thought the old store was removed in the latest version. Penta wrote: I noticed that with release 1.2.129 if I create a new db using h2 console, using this url: jdbc:h2:file:c:/eclipse-workspace/testdb, it's created in the

Re: Lot of temp.lob files

2010-02-18 Thread Ryan How
I run a web app in embedded mode. I keep a single connection open as a control connection. Then when the app closes I close that connection. On the last connection closing the database closes. Seems to work well I also use that control connection while the application is running for some

Re: huge data insert

2010-02-15 Thread Ryan How
Is it the server or the client running out of memory? You need to make sure the server is running with plenty of memory, I don't think the client needs it in this case. uyeee wrote: Thank you Chuck I download from here http://www.h2database.com/h2-2010-01-30.zip I used

How to tell if an index is being used?

2010-02-15 Thread Ryan How
Hi, I have a query which is running slower than I think it should. It takes about 6 seconds to complete first time, then 500ms each subsequent time and returns about 100 rows. The table has about 300,000 rows in it. I can't figure out how to tell if it is using an index or not (or the right

Re: How to tell if an index is being used?

2010-02-15 Thread Ryan How
. Thanks, Ryan Ryan How wrote: Hi, I have a query which is running slower than I think it should. It takes about 6 seconds to complete first time, then 500ms each subsequent time and returns about 100 rows. The table has about 300,000 rows in it. I can't figure out how to tell if it is using

Re: Script To running out of heap space

2010-02-13 Thread Ryan How
Sorry, I didn't do a very good job of explaining and confused everything! I had to regenerate the script because I didn't have the original copy, so I took the script from a tcp connection to the server rather than taking the server offline and doing it in embedded mode (like I did

Re: Script To running out of heap space

2010-02-08 Thread Ryan How
Mueller wrote: Hi, It looks like H2 now needs more heap space than it used to, specially when creating tables. I will have to fix the memory usage methods. Could you send me the backup_script.ZIP? Regards, Thomas On Fri, Feb 5, 2010 at 4:17 AM, Ryan How r...@exemail.com.au wrote: Hi, I've

Script To running out of heap space

2010-02-04 Thread Ryan How
Hi, I've switched over to the new page store, version 1.2.128. I haven't done tests, but a lot of things appear to be faster than before which is nice (and database size is much smaller!!) Anyway, my issue is related to the SCRIPT TO command. I am running out of heap space and it seems to

Re: Linked Tables feature request

2010-02-03 Thread Ryan How
Do you mean like Access, where you can access heterogeneous data sources like they are one database, but also have the ability to pass-through to the originating data source? Ryan -- You received this message because you are subscribed to the Google Groups H2 Database group. To post to this

Performance with large transactions

2010-01-22 Thread Ryan How
Hi, I had a need to import a bulk lot of data that will both insert new data and update existing data in several tables. I have this in a transaction because I don't want any of it to go ahead if any errors occur. It has been working great, but I recently tried importing quite a lot of data

Re: Table Limits of one Database

2009-12-29 Thread Ryan How
For this reason I doubt would will get many people who have stretched their databases to such extend. If not well tested, You could always put together a quick test case. From what I've seen usually the limits in H2 are on memory usage. Ryan -- You received this message because

Re: How avoid database corruptions?

2009-12-18 Thread Ryan How
You could try the serialized lock (which may be a little slow) but allow you to run it in embedded mode and have multiple clients connect. But I don't know if it is unstable. Or run a tcp server and connect using TCP (this is probably the best way if it is possible). Or use the auto server

Motivations for the H2 Project

2009-12-13 Thread Ryan How
Hi, No obligation to answer this as it isn't technically related to anything, but I am very intrigued as to the motivation behind this project. I use H2 in a few projects and it is a fantastic project. Like a swiss army knife of databases (in flexibility and quality!). And I have to say the

Re: Starting H2 As A Window Service

2009-10-04 Thread Ryan How
It will be under the home directory of the user that the service is running as. Ayodeji Aladejebi wrote: Hi, I have a problem knowing where H2 places my database folder when i start the database with the following Database URL configuration

Re: JaQu bug when multiple Booleans in a query

2009-09-19 Thread Ryan How
AM, Ryan How r...@exemail.com.au wrote: I have this jaqu query, long okCount = db.from(msli) .innerJoin(ms).on(ms.maintenanceStatusId).is(msli.maintenanceStatusId) .innerJoin(sp).on(ms.samplePointId).is(sp.samplePointId) .whereTrue(Function.and(ms.latest

Re: JdbcConnectionPool.setLoginTimeout(0)

2009-08-28 Thread Ryan How
Hi Guys, I don't know a lot about this but reading through the thread... I doubt anyone will respond. People focus on their own issues. I respond if I can help. Or not help in this case but just felt like responding... I interpret it to mean that passing in a value of zero sets it to the

Re: JaQu: the order of the fields no longer needs to match

2009-08-09 Thread Ryan How
I am assuming this would mean the number of fields no longer needs to match either? Cheers, Ryan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups H2 Database group. To post to this group, send email to

Re: Jaqu in a project

2009-08-07 Thread Ryan How
Oh and 1 other thing I forgot (coz I was just using it now!). Make sure the order of the fields in your database and the order of fields in your java class match up! Otherwise it'll get up to all sorts of mischeif! ArturoMS wrote: What issues I would be able to have, if i use jaqu in a simple

Re: Prevent JVM freeze when using H2

2009-07-12 Thread Ryan How
Maybe it is something with the eclipse plugin blocking the UI thread?. That would be my guess... I can't see it would be a H2 specific thing... Have you tried plugging in another database to see if it still does it on long running queries? zvikico wrote: On Jul 10, 9:04 pm, bob mcgee

Re: ODBC bug: can't determine table column type (TYPE_ID=-9)

2009-07-08 Thread Ryan How
I wonder if this will fix the MS Access issue. I'm keen to try it out next release :) Ryan Thomas Mueller wrote: Hi, Thanks a lot for the patch! I will integrate it, and it will be included in the next release. Regards, Thomas On Sat, Jul 4, 2009 at 2:21 PM, Sergi

Re: Master Slave Replication

2009-07-01 Thread Ryan How
You could do an online backup, rsync it and then restore. But it would use a lot more resources than just doing a one way transaction replication. And it would need to take the slave down while restoring. I'll be doing this on a project coming up, but it is acceptable for me to take the slave

Re: Microsoft Access using PostgreSQL ODBC

2009-05-26 Thread Ryan How
Okie dokie. This pops up in the trace.db when MS Access (I forgot to say, it is Access 2003) lists the tables to link to (See below). But the tables list fine, there isn't a problem there. I am guessing it is just looking for a table with some preferences or something. Second time around

<    1   2   3