Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Small JRuby Success Story
Search
seban
January 05, 2012
72
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Small JRuby Success Story
Testing speaker deck
seban
January 05, 2012
Featured
See All Featured
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
340
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7k
Odyssey Design
rkendrick25
PRO
2
870
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
260
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.4k
Building AI with AI
inesmontani
PRO
1
1.3k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
First, design no harm
axbom
PRO
2
1.3k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
630
Transcript
JRuby real use case Small JRuby success story
Problem • Pobranie informacji z bazy danych programu księgowego Symfonia
Premium • Baza danych: Pervasive/BTrive (WTF?) • Ilość danych: 500 000 i rośnie • Cel: struktura bazy danych, która pozwala na łatwe zapytania OLAP i generowanie raportów dla zarządu (tabele i wykresy)
Pervasive DB • Jakiś SQL • Dużo mniej przyjemne w
obyciu niż MySQL • Uruchomione na Windows • Biblioteka antywzorców w projektowaniu baz danych • Dostępne sterowniki do podłączenia: ADO.Net ODBC JDBC
RVM • wiele implementacji Ruby • wiele wersji Ruby •
łatwe rvm install jruby rvm jruby ruby -v jruby 1.4.0 gem install ...
No to jazda! require 'java' module JavaSql include_package "java.sql" end
Java::JavaClass.for_name("pervasive.jdbc.PervasiveDriver") @connection = JavaSql::DriverManager.getConnection("jdbc:pervasive://host/DB; encoding=CP1250", "noob", "") stmt = @connection.createStatement stmt.executeQuery("SELECT * FROM table LIMIT 1000")
Problem Pamięć