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
76
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
Transcript
6 slides
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ęć
Featured
See All Featured
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
630
Accessibility Awareness
sabderemane
1
310
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
700
Tell your own story through comics
letsgokoyo
1
1.1k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Claude Code のすすめ
schroneko
67
230k
RailsConf 2023
tenderlove
30
1.6k
Abbi's Birthday
coloredviolet
5
11k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Context Engineering - Making Every Token Count
addyosmani
9
1.3k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
A Tale of Four Properties
chriscoyier
163
24k