Click here to Skip to main content

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralXPath oddity PinpremiumPIEBALDconsult3-Jul-14 8:15 
GeneralRe: XPath oddity PinprofessionalRichard Deeming3-Jul-14 8:39 
GeneralRe: XPath oddity PinpremiumPIEBALDconsult3-Jul-14 9:21 
GeneralComparisons... Pinmemberjan larsen30-Jun-14 23:30 
GeneralRe: Comparisons... PinprofessionalBernhard Hiller1-Jul-14 20:56 
GeneralRe: Comparisons... Pinmemberjan larsen4-Jul-14 2:46 
GeneralRe: Comparisons... PinprofessionalBernhard Hiller4-Jul-14 3:15 
GeneralRe: Comparisons... Pinmemberjan larsen9-Jul-14 22:28 
Ha!
I found the problem. DAX uses a caching mechanism to avoid too many roundtrips to the SQL Server.
If you're using the primary key in a query, then DAX will search an in-memory cache to retrieve a single record.
Apparently, DAX gets confused when I use the primary key field busRelAccount on the left hand side of the comparison. Using bus.disableCache(true) fixes this problem.
I hope they get rid of this bug soon, I really don't like to think of all the places I could have trusted this to just work.
"God doesn't play dice" - Albert Einstein
 
"God not only plays dice, He sometimes throws the dices where they cannot be seen" - Niels Bohr

GeneralIIF to the rescue... PinpremiumSander Rossel30-Jun-14 5:29 
GeneralRe: IIF to the rescue... PinprofessionalBernhard Hiller30-Jun-14 20:38 
GeneralRe: IIF to the rescue... PinpremiumSander Rossel30-Jun-14 20:56 
GeneralRe: IIF to the rescue... PinprofessionalBernhard Hiller30-Jun-14 21:35 
GeneralRe: IIF to the rescue... PinpremiumSander Rossel30-Jun-14 21:56 
GeneralRe: IIF to the rescue... PinprofessionalBernhard Hiller1-Jul-14 20:57 
GeneralRe: IIF to the rescue... PinpremiumSander Rossel2-Jul-14 0:58 
GeneralRe: IIF to the rescue... PinpremiumNagy Vilmos30-Jun-14 23:43 
GeneralRe: IIF to the rescue... PinpremiumSander Rossel1-Jul-14 0:16 
GeneralRe: IIF to the rescue... PinprofessionalRichard Deeming1-Jul-14 2:33 
GeneralRe: IIF to the rescue... PinmemberPaulLinton2-Jul-14 15:14 
GeneralRe: IIF to the rescue... PinpremiumSander Rossel2-Jul-14 19:31 
GeneralRe: IIF to the rescue... [modified] PinprofessionalJörgen Andersson5-Jul-14 20:02 
GeneralStarting to page OS to disk! PinpremiumDavid O'Neil27-Jun-14 10:22 
GeneralChecking for empty guid PinmemberStepan Kobzey26-Jun-14 10:04 
GeneralRe: Checking for empty guid PinpremiumPIEBALDconsult26-Jun-14 10:13 
GeneralRe: Checking for empty guid PinmemberStepan Kobzey26-Jun-14 10:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 26 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid