Slightly related: 

diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://1165430`


Will create a ram disk, I used this command a few months ago to create a 
ramdisk, then I pointed couchdb at the ramdisk, which was quicker than my SSD… 


I recall getting some 1min+ suites running in 10—20 seconds using this 
technique, parallel_specs and ensuring to use rspecs 'let' feature, which 
lazily creates factory objects as required. 


Happy hunting…

Cheers, 


Ben


On Wednesday, 15 December 2010 at 5:17 PM, Robert Gravina wrote:

> 
> >  SQLite database is much faster to run than any other for the tests.
> >  So the first thing to do is to try to isolate Database access. First try
> >  SQLite, then try to hack to use SQLite in-memory DB, then srub and mock.
> > 
> > 
> > 
> 
> Unfortunately the app has a lot of PostgresSQL dependencies, triggers
> etc. so it won't run on anything other than Postgres (8.2).
> 
> I googled a bit and found some info about setting up a ramdisk and
> storing the postgres DB on there.... that might help.
> 
> Robert
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby or Rails Oceania" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rails-oceania?hl=en.
> 
> 
> 
> 


-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to