Alexander Drogin

@adrogin.bsky.social

Microsoft Business Central developer

Why could BC tests start failing all of a sudden with "Sorry, the current permissions prevented the action"? I've been running my tests for a while, but after upgrading the dev instance got this error. Setting TestPermissions = Disabled resolves it, but I'm curious what could have caused it.

SetLoadFields function helps developers to avoid unnecessary table joins and reduce the amount of data sent over the network. But how significant is the benefit of a smaller dataset? When does it really make a difference? Some measurements in a blog post. www.keytogoodcode.com/post/perform...

Performance benefits of SetLoadFields in a slow network

Introduction of the SetLoadFields function in AL language that allowed to limit the number of fields returned to the Business Central server by a SQL query was a big step forward towards achieving bet...

keytogoodcode.com

It looks like I need to practice my skills in using the Ctrl+F function. I once asked how I could generate a hash with the Cryptography Management codeunit based on a binary key. Easy, it turns out. There is a function for this that accepts a base64 key. I just did not find it.

Bild

How can just in time loads be faster than a full record load? After all, this means two queries reading the same table. And two are slower than one, right? Right, but only if we allow these two queries to run until completion. www.keytogoodcode.com/post/jit-loa...

JIT loads vs Full record load

Since the time when I came across this post by Waldo (or actually, he mentioned his test results in one online discussion) I was curious to try it myself and dig into its unexpected results. The quest...

keytogoodcode.com

I have a good question for #bcalhelp. I need to generate a hash with a function from Cryptography Management CU, which requires a text argument as the key. But I need to send a byte array. Text in AL is UTF-8, so bytes above 7F turn into 2-byte sequences, and my key never matches the counterpart.

I worked a little more on the BC cost tracer and added a couple new features: node grouping and a new layout with the fCoSE algorithm, which is very efficient in compound nodes clustering. Thanks to this algorithm, item ledger entries can be grouped by the document no. github.com/adrogin/BCVi...

GitHub - adrogin/BCVisuals: Visual control add-ins for Business Central

Visual control add-ins for Business Central. Contribute to adrogin/BCVisuals development by creating an account on GitHub.

github.com

Are you afraid of filters on FlowFields in AL? Well... There is definitely a reason to be cautious. But it may not be as bad as it seems, and certainly not as bad as some other methods which are used to avoid these filters. www.keytogoodcode.com/post/filteri...

Filtering on FlowFields

It has been said so many times that filtering on FlowFields is bad for performance that we are used to avoiding this kind of filters in AL at all costs. So whenever a developer needs to select a subse...

keytogoodcode.com

Following my series of posts where I've been addressing various aspects of table indexing, this post delves into the same argument from a different point of view. Now I want to ask a question: how indexing impacts query performance from the insert/update side. www.keytogoodcode.com/post/table-i...

Table indexes and inserts

Following my series of posts where I have been addressing various aspects of table indexing, this post delves into the same old argument from a different point of view. Previously, I measured timings ...

keytogoodcode.com