Giter Site home page Giter Site logo

Comments (11)

pamval avatar pamval commented on July 17, 2024

Why is CDA settings sharing by other users a problem?
AFAIK, this caches only the metadata for the connections/queries. Can you share a use case for this ?

The changes you made result in a segregated cda settings cache per user, which is something we'd like to avoid.

from cda.

spektom avatar spektom commented on July 17, 2024

Suppose I have a CDA resource shared between all the users. In its DataAccess sections, I have a proper caching key definition:

<Cache enabled="true" duration="900">
  <Key name="user-in-session" value="${[security:principalName]}" default="user-in-session"/>
</Cache>

When looking at the same report from two different users (which use different data sources) I see the same data. Why is that? This is because the settings of this CDA were inserted into a cache when the first user has opened the report, and the cache key has gotten the value: user-in-session:firstUser. When the second user opens the same report its cache key gets user-in-session:firstUser as well, since the settings are cached.

from cda.

pamval avatar pamval commented on July 17, 2024

In my opinion, that means we're wrongly pre-calculating the cache keys and keeping that result. The cache key should be calculated when adding the resultset to cache in order to take into account the current context (session vars). Like we do for query parameters, which are also used in building the cache key.

from cda.

spektom avatar spektom commented on July 17, 2024

What if we move FormulaEvaluator.replaceFormula() from pt.webdetails.cda.cache.DataAccessCacheElementParser.buildKeyValuePair(Element) to some place like pt.webdetails.cda.dataaccess.AbstractDataAccess.getExtraCacheKey(), so it will be called each time cache key is needed?

from cda.

pamval avatar pamval commented on July 17, 2024

I think I'd rather defer the call to DataAccessCacheElementParser.getCacheKey.

Instead of having that being called in the DataAccess constructor, I'd call it in the getCacheKey method. So, everytime a cache key is requested, the right cache key will be computed.
Probably move the parser from being a locally defined variable to object attribute.

from cda.

spektom avatar spektom commented on July 17, 2024

Please review the fix!

from cda.

pamval avatar pamval commented on July 17, 2024

looks good, merging.

thanks!

from cda.

spektom avatar spektom commented on July 17, 2024

Will this fix be merged into 5.1 branch?

from cda.

pamval avatar pamval commented on July 17, 2024

The cda 5.1 branch ? No, it won't. Why do you need that ?

from cda.

spektom avatar spektom commented on July 17, 2024

I'm asking because we used to take CDA from there (we're using Pentaho
5.1): http://ci.pentaho.com/view/x5.1x/job/pentaho-cda-pentaho-5.1/
If the change will not appear there, then we should take the artifact from
some other place (or build it ourselves).

On Tue, Aug 12, 2014 at 5:23 PM, Pedro Vale [email protected]
wrote:

The cda 5.1 branch ? No, it won't. Why do you need that ?


Reply to this email directly or view it on GitHub
#67 (comment).

from cda.

pamval avatar pamval commented on July 17, 2024

ok, fair enough.

The trunk builds support Pentaho 5.1 as well, so you can download the trunk build:

http://ci.pentaho.com/job/pentaho-cda/

or the stable builds (although it will be a month or so before this fix gets into the release branch);

http://ci.pentaho.com/job/pentaho-cda-release/lastSuccessfulBuild/artifact/cda-pentaho5/dist/

Pedro Vale
Webdetails Dev Lead

http://www.webdetails.pt

A 12/08/2014, às 15:28, Michael Spector [email protected] escreveu:

I'm asking because we used to take CDA from there (we're using Pentaho
5.1): http://ci.pentaho.com/view/x5.1x/job/pentaho-cda-pentaho-5.1/
If the change will not appear there, then we should take the artifact from
some other place (or build it ourselves).

On Tue, Aug 12, 2014 at 5:23 PM, Pedro Vale [email protected]
wrote:

The cda 5.1 branch ? No, it won't. Why do you need that ?


Reply to this email directly or view it on GitHub
#67 (comment).


Reply to this email directly or view it on GitHub.

from cda.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.