greptilian logo

IRC log for #rest, 2015-04-26

https://trygvis.io/rest-wiki/

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
01:59 trygvis joined #rest
02:03 alxbl joined #rest
03:42 sfisque joined #rest
06:38 fsvehla joined #rest
08:08 Left_Turn joined #rest
08:31 shrink0r joined #rest
09:20 fsvehla joined #rest
10:31 adaro joined #rest
10:32 graste joined #rest
11:14 quimrstorres joined #rest
11:41 quimrstorres joined #rest
11:46 quimrstorres joined #rest
12:00 quimrstorres joined #rest
12:37 sfisque1 joined #rest
13:56 quimrstorres joined #rest
14:25 quimrstorres joined #rest
15:06 graste joined #rest
15:37 blahdeblah joined #rest
16:05 quimrstorres joined #rest
16:16 pdurbin apparently this can be used for REST as well: http://en.wikipedia.org/wiki/SoapUI
17:57 Left_Turn joined #rest
18:09 quimrstorres joined #rest
19:13 `0660 joined #rest
19:18 trygvis SoapUI can test SOAP and REST web services, JMS, AMF, as well as make any HTTP(S) and JDBC calls.[7]
19:20 trygvis sounds like it has grown beyond of it's original SOAP target :)
19:26 pdurbin yeah. I saw it used here: ▶ Supercharging Java EE applications with JCache, Speaker: Steve Millidge - YouTube - https://www.youtube.com/watch?v=FscLn-9crfE
19:29 trygvis it's not bad, I've used to test/develop actual SOAP services :)
19:29 pdurbin :)
19:30 pdurbin mostly I was watching that video to learn about JCache. I wonder if it's any good
19:46 trygvis what are you trying to achieve with caching?
19:46 trygvis jcache is the JCP API? I think most/many providers implement it
19:47 pdurbin trygvis: well, this is the issue I just opened: Performance: Investigate use of JSR 107: JCache - Java Temporary Caching API · Issue #2100 · IQSS/dataverse - https://github.com/IQSS/dataverse/issues/2100
19:57 trygvis that didn't explain the problem you're trying to solve, only pointers to the solution :)
19:58 trygvis do you use JPA for data access?
19:59 pdurbin trygvis: yes, we use JPA
20:01 trygvis most JPA providers can give you a level 2 cache as well, I would possibly look into that first
20:01 trygvis maybe not if you do a lot of crunching per request that can be cached
20:01 pdurbin ok. thanks. we use eclipselink
20:03 shrink0r joined #rest
20:03 pdurbin I'm seeing some L2 stuff here: http://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Basic_JPA_Development/Caching
20:13 shrink0r_ joined #rest
20:16 shrink0r joined #rest
20:17 pdurbin trygvis: here's a ticket that better captures a problem (performance) rather than a solution: https://github.com/IQSS/dataverse/issues/2096
20:18 trygvis right. that sounds like something an l2 cache could solve, assuming that the query results are shareable across users
20:19 trygvis the "not logged in" obviously are I guess
20:19 trygvis it also looks like you're doing a bit too many queries in the first place. I think you should start there.
20:21 pdurbin yeah, that guy has been finding all sorts of places to cut down the query count. e.g. https://github.com/IQSS/dataverse/issues/1957
20:29 trygvis using a native query here sounds a bit excessive: https://github.com/IQSS/dataverse/commit/353fd6bf11032f26dc018e1d8016da0b6cbf8cdc
20:29 trygvis native and non-generic
20:30 trygvis and string concatennation! that is a big no-no
20:31 pdurbin I've been guilty of that too at times when looking for a quick fix.
20:33 pdurbin but yeah, I agree
20:35 trygvis dude, it's like em.createQuery(".. userId = ?").setParameter(0, userId)
20:35 pdurbin yeah
20:35 trygvis or even em.createQuery(".. userId = :userId").setParameter("userId", userId)
20:36 pdurbin I wonder if there's a tool at will detect and report on string concatenation in JPA.
20:37 trygvis IDEA usually has that kind of inspections
20:37 pdurbin will it generate a report for the whole codebase?
20:38 trygvis no, it just shows up as a warning on the line
20:39 trygvis but it didn't detect the string concatenation
20:39 pdurbin yeah, I think netbeans does that too
20:49 pdurbin typically I try to find a Jenkins plugin that will highlight the problem with a count with the thought that people will want to see the number of warnings go down
22:12 shrink0r_ joined #rest
22:20 shrink0r joined #rest
22:20 sfisque1 joined #rest
23:15 shrink0r_ joined #rest
23:28 warehouse13 joined #rest

| Channels | #rest index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

https://trygvis.io/rest-wiki/