Heavily used KB article loads very slowly - HTML identical new article loads instantly

LoadFaster
Tera Contributor

Hello All,

I have a primary KB article we use daily.

It consistently takes about 15 seconds to load.

It gets edited quite a bit, we are up to version 181, updated at least weekly.

Can having this many versions be why it takes so long?

Its also referenced in quite a few tickets, would that cause it to load slowly?

If neither of these are factors, what can we do to help the issue?

To test why this opens so slow, I copied the slow articles HTML to a new version and it loads instantly, basically on click.

Further info: seems to happen whether I use permalink or sys_kb_id links, from classic or knowledge portal.

Our dev team already tried turning off the footer with all the articles its attached on and same issue.
Happens on old versions of the article when we try as well as test environment.

1 ACCEPTED SOLUTION

vaishali231
Kilo Sage

Hey @LoadFaster 

Possible Causes

1. Excessive Related Records / Audit History

Older heavily-used KB articles can accumulate:

  1. Large audit history (sys_audit)
  2. Journal/activity entries
  3. Version history
  4. Attachments
  5. Feedback/comments
  6. Usage analytics
  7. Many-to-many relationships

Even if not visible on the form, some of these may still process during article load.

Since the copied article loads instantly, the new record does not carry all this historical baggage.

 

2. Custom Business Rules / Display Logic

Check for:

  1. Display Business Rules
  2. Before Query rules
  3. UI Policies
  4. Client Scripts
  5. Script Includes
  6. Knowledge customizations
  7. Widget/server scripts (especially in portals)

A heavily referenced “primary KB article” often becomes part of custom automation over time.

The fact it happens in:

  1. Classic UI
  2. Knowledge Portal
  3. Permalink
  4. sys_kb_id
  5. Old versions
  6. Test environment

…suggests it may be server-side processing tied to the article record itself.

 

3. Corrupted or Heavy Article Metadata

Sometimes older records develop performance issues due to:

  1. Large XML payloads
  2. Corrupted version chains
  3. Legacy upgrades
  4. Stale indexing
  5. Broken related references

This is rare but does happen.

Your cloning test strongly points in this direction.

 

Recommended Troubleshooting

Compare Slow vs Fast Article

Use:

  1. Transaction Timings
  2. Debug Business Rule
  3. Debug SQL
  4. Debug Security Rules

Compare:

   Original slow article

   Newly copied fast article

That usually identifies the extra processing.

 

Check Related Record Counts

Compare counts for:

  1. kb_knowledge_base
  2. kb_knowledge
  3. kb_use
  4. m2m_kb_task
  5. sys_audit
  6. sys_history_line
  7. sys_attachment
  8. Feedback/comment tables

Especially audit/history growth.

 

Rebuild Search Index

Try reindexing the article / knowledge base.

Sometimes stale indexing causes unexpected delays.

 

Review Customizations

Search for custom logic referencing:

    article sys_id

    knowledge number

   knowledge display/load events

Example areas:

  1. Business Rules on kb_knowledge
  2. Portal widgets
  3. ACL scripts
  4. Display BRs

 

Practical Resolution Many Teams Use

If the root cause cannot be identified quickly, many teams simply:

  1. Create a fresh KB article
  2. Copy validated content
  3. Retire old article
  4. Redirect links if needed

Since your cloned article performs correctly, this may be the fastest operational fix.

 

*************************************************************************************************************************************

If this response helps, please mark it as Accept as Solution and Helpful.

Doing so helps others in the community and encourages me to keep contributing.

Regards

Vaishali Singh

Servicenow Developer
Linkedin - https://www.linkedin.com/in/vaishali-singh-2273361bb



View solution in original post

5 REPLIES 5

hi, it had only one small picture in older versions and I had removed it as part of troubleshooting so no buildup there but good to check ty.