<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by VisuaLeaf on Medium]]></title>
        <description><![CDATA[Stories by VisuaLeaf on Medium]]></description>
        <link>https://medium.com/@visualeaf?source=rss-57c6e0e240c8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L2lOgkS5DMdvWMHE22Gakw.png</url>
            <title>Stories by VisuaLeaf on Medium</title>
            <link>https://medium.com/@visualeaf?source=rss-57c6e0e240c8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:39:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@visualeaf/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[9 Best MySQL GUI Clients in 2027 for Windows, Mac, and Linux]]></title>
            <link>https://medium.com/@visualeaf/9-best-mysql-gui-clients-in-2027-for-windows-mac-and-linux-993a175c3bd0?source=rss-57c6e0e240c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/993a175c3bd0</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[VisuaLeaf]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 12:32:26 GMT</pubDate>
            <atom:updated>2026-11-27T12:32:26.863Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mDNCaYpCY3ZlrOHD_KQRVQ.png" /></figure><p>Most MySQL GUIs can run a query and show you a table. The differences appear when you need more than that: joining tables without writing SQL, understanding why a query is slow, or checking what changed between two copies of your data.</p><p>I tested nine clients on the same fictional running-store database and ran the same tasks in each. That way, the comparison shows how each tool behaves in practice, not just what its feature page promises.</p><p><strong>What I checked in each client:</strong></p><ul><li>Can you browse and edit data without writing SQL?</li><li>Is there a visual query builder, and does it show the SQL it generates?</li><li>Does it draw an ER diagram from your foreign keys, and can you edit it?</li><li>Can it explain a slow query with a readable execution plan or profiler?</li><li>Can it compare data or schemas between two databases?</li><li>Which features are free, and which need a paid edition?</li><li>Does it run natively on Windows, macOS, and Linux?</li></ul><p><em>Tested on Windows 11 with MySQL 8.4.11. Prices checked on November 24, 2026.</em></p><h3>Quick comparison</h3><p><em>Prices are in USD for one user, before applicable taxes unless the storefront specifies otherwise. Only annual subscriptions and perpetual purchases are shown.</em></p><ol><li><strong>VisuaLeaf</strong>: best overall visual workspace · tested: Professional · Windows, macOS, Linux · free Community edition · Basic $79 / Professional $149 perpetual</li><li><strong>dbForge Studio for MySQL</strong>: MySQL development and administration on Windows · tested: Enterprise · Windows (macOS/Linux via CrossOver or Wine) · free Express edition · from $99.95/year</li><li><strong>DbSchema</strong>: modeling and test data · tested: Pro · Windows, macOS, Linux · free Community edition · Pro $294 / Architect $470.40 perpetual</li><li><strong>phpMyAdmin</strong>: managing MySQL in the browser · free, single edition · runs on a PHP web server or container · $0</li><li><strong>DBeaver</strong>: one client for many databases · tested: Ultimate 26.2.0 · Windows, macOS, Linux · free Community edition · from $113/year</li><li><strong>Navicat for MySQL</strong>: data profiling · tested: Navicat 18 for MySQL · Windows, macOS, Linux · free Premium Lite (separate product) · $279.99/year or $559 perpetual</li><li><strong>DbGate</strong>: visual queries plus charts · tested: Premium · Windows, macOS, Linux, self-hosted web · free Community edition · Premium $120/year, Team Premium $150/year</li><li><strong>SQLyog</strong>: Windows admin and backups · tested: commercial trial · Windows · free Community edition · $299 perpetual</li><li><strong>HeidiSQL</strong>: free lightweight client · single edition · Windows, Linux, macOS (Apple Silicon) · $0</li></ol><h3>How I tested the clients</h3><p>The starting database, mysql_store_demo, contained ten tables and an order-summary view. It included customers, products, orders, payments, shipments, and reviews, with foreign keys and JSON product specifications. The original dataset had 600 orders, 1,800 order items, and 30 products.</p><p>I inspected the schema in each client, ran queries, and tested additional features appropriate to the tool. Where a visual query builder was available, I used the same orders–order items–products example. Other tasks included inspecting execution plans, browsing linked records, generating fictional customers, profiling column data, charting query results, adding an index, and creating a backup.</p><p>These were usability and feature tests on a small database. Query timings are not a performance ranking: indexes and test tables changed during the work, and a GUI’s execution-plan costs are not elapsed milliseconds. The operating systems above are the vendors’ supported platforms; I tested on Windows.</p><h3>1. <a href="https://visualeaf.com/database/mysql/">VisuaLeaf</a></h3><p>I tested VisuaLeaf <a href="https://visualeaf.com/compare-plans/">Professional edition</a>. It keeps schema, data, and query tools in one application, for SQL databases and MongoDB alike.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BZJOb4vvaRvL6saM.png" /></figure><p><strong>Feature highlights</strong></p><ul><li><strong>Schema diagrams:</strong> draw one from scratch or reverse-engineer a live database</li><li><strong>SQL editor:</strong> inline editing, plus a <a href="https://visualeaf.com/docs/sql-query-builder">visual query builder</a> that shows the generated SQL as you build</li><li><strong>Index manager:</strong> create, change, and drop indexes</li><li><strong>Query profiler:</strong> spot and diagnose slow statements (Basic and up)</li><li><strong>Data compare and sync:</strong> row-level differences across SQL and MongoDB databases (Professional)</li><li><strong>Data masking:</strong> hide sensitive fields in exports (Basic and up)</li><li><strong>Task automation:</strong> import, export, and migration jobs, including scheduled transfers</li><li><strong>Charts and dashboards:</strong> built straight from query results (Professional)</li><li><strong>AI help:</strong> AI Assistant in Basic, MCP support in Professional</li><li><strong>Documentation:</strong> interactive HTML5, PDF, JSON, or DDL (Professional)</li></ul><p>In the <a href="https://visualeaf.com/features/visual-query-builder/">Visual Query Builder</a>, I joined orders, order_items, and products, selected the order number, quantity, line total, and product name, and filtered for delivered orders. Seeing the joins, filter, and results together made the query easy to follow. The <a href="https://visualeaf.com/features/query-profiler/">Query Profiler</a> complemented this with statement activity, execution counts, timings, and the execution plan, helping you identify which queries deserve a closer look.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*75C5dP9pXYcbVhYR.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-Tql4uJYplrxPXBP.png" /></figure><p>VisuaLeaf’s Visual Query Builder and Query Profiler showing table joins, filtered results, statement activity, and an execution plan.</p><p><strong>Pros</strong></p><ul><li>The visual query builder shows the generated SQL as you build.</li><li>Profiling and comparison sit alongside the everyday editing tools.</li><li>Useful when MySQL is part of a wider SQL and MongoDB workflow.</li></ul><p><strong>Cons</strong></p><ul><li>Query Profiler requires a paid plan.</li><li>Newer on the market than the other tools here, so there are fewer community guides and forum answers. Still, it’s a strong choice.</li></ul><blockquote><strong><em>My personal note:</em></strong><em> There are a lot of features, so it can take a while to find your way around at first. The built-in tutorials inside the app helped me get up to speed quickly.</em></blockquote><p><strong>Price:</strong> Community is free. Basic is $79, and Professional is $149 as perpetual purchases with one year of updates. A 14-day Professional trial is available. <a href="https://visualeaf.com/pricing/">Compare editions</a>.</p><h3>2. <a href="https://www.devart.com/dbforge/mysql/studio/">dbForge Studio for MySQL</a></h3><p>I tested dbForge Studio for MySQL Enterprise. It’s the most MySQL-focused tool on this list, covering development and administration in one studio. Check the <a href="https://www.devart.com/dbforge/mysql/studio/editions.html">edition matrix</a>, because features are spread across several plans.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jGRgbfWJN5n79T4_.png" /></figure><p><strong>Feature highlights</strong></p><ul><li><strong>Database Designer:</strong> design and edit the schema on an ER diagram</li><li><strong>Query Builder:</strong> build queries visually, with the SQL generated for you; SELECT queries are available in the free Express edition.</li><li><strong>Query Profiler:</strong> execution-plan diagrams and query statistics (Standard and up)</li><li><strong>Master-Detail Browser:</strong> see parent and child records side by side (Standard and up)</li><li><strong>Debugger:</strong> step through stored procedures, functions, and triggers</li><li><strong>Schema and data compare:</strong> find differences and generate sync scripts (Professional and up)</li><li><strong>Backup and restore:</strong> with command-line automation in higher editions</li><li><strong>Data Generator and Documenter:</strong> realistic test data and schema documentation (Enterprise)</li><li><strong>Source control:</strong> version your database objects (Enterprise)</li><li><strong>AI Assistant:</strong> generate, explain, and optimize SQL with the integrated dbForge AI Assistant.</li></ul><p>The Query Profiler displayed the query’s access paths, joins, sorting, and estimated costs as a diagram. I also used the Master-Detail Browser: after connecting orders and order_items, selecting order 8 showed its three matching items underneath, without writing a join.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Wv0BiaIQ8QMGbArf.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aCb1r7S-6Flyv014.png" /></figure><p>dbForge Studio visualizing a query’s execution plan and displaying order 8 with its three related order items.</p><p><strong>Pros</strong></p><ul><li>Broad MySQL development and administration coverage.</li><li>Clear execution-plan visualization and practical linked-record browsing.</li><li>Database Designer for visual schema work alongside the admin tools.</li></ul><p><strong>Cons</strong></p><ul><li>Native Windows application; macOS and Linux require a compatibility layer.</li><li>Comparison, reporting, and other advanced functions require a higher edition.</li></ul><blockquote><strong><em>My personal note:</em></strong><em> The Master-Detail Browser was my favorite discovery here. I just wish there were a native macOS version.</em></blockquote><p><strong>Price:</strong> Express is free. Advertised annual prices are $99.95 for Standard, $179.95 for Professional, and $229.95 for Enterprise. The Query Profiler and Master-Detail Browser shown here are available in Standard or higher. <a href="https://www.devart.com/dbforge/mysql/studio/">Pricing</a></p><h3>3. <a href="https://dbschema.com/">DbSchema</a></h3><p>I tested DbSchema Pro, which puts the diagram and design model at the center of the workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rDP-cLdQheefJleD.png" /></figure><p><strong>Feature highlights</strong></p><ul><li><strong>Diagram-first design:</strong> reverse-engineer a database, then edit and save the model offline</li><li><strong>Schema sync:</strong> compare the model with the live database and generate the migration SQL</li><li><strong>Visual query builder:</strong> joins and filters on a diagram, next to the results</li><li><strong>Relational data browser:</strong> follow foreign keys from one table’s rows to the next</li><li><strong>Data generator:</strong> patterned test data that can reuse existing parent keys</li><li><strong>Documentation:</strong> HTML, PDF, or Markdown</li><li><strong>AI Assistant:</strong> optional paid add-on</li></ul><p>I used the visual builder to connect orders, order items, and products, then filtered for delivered orders. The joined tables, generated SQL, and returned rows were visible together.</p><p>The <a href="https://dbschema.com/documentation/random-data-generator.html">Data Generator</a> was the strongest practical example. I created a separate demo_customers table and generated 100 rows. The configuration showed first-name and last-name patterns, an email pattern, a date generator, and a skipped auto-increment ID. The result reported, &quot;Succeeded 100.&quot;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*btC7O3p61LAwD6j5.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FkgAGqnDFcozM3lu.png" /></figure><p>DbSchema’s visual query builder alongside a successful generation of 100 demo customers with configurable column patterns.</p><p><strong>Pros</strong></p><ul><li>Strong emphasis on diagrams and the database model.</li><li>Configurable test-data patterns with sample output.</li><li>A perpetual Pro license is available.</li></ul><p><strong>Cons</strong></p><ul><li>Saving model files, the visual query builder, the relational data browser, and the generator all require Pro.</li><li>The diagram is part of almost every screen, which can feel crowded when you just want to write SQL.</li></ul><blockquote><strong><em>My personal note:</em></strong><em> DbSchema is one of the most complete design tools I’ve used, and the diagram-first approach really pays off when you’re modeling. What annoys me a little is that the diagram follows you everywhere, even in the query builder and SQL editor, when sometimes I just want a clean editor.</em></blockquote><p><strong>Price:</strong> Community is free. Pro is $294 perpetual and includes one year of upgrades; later updates are optional at $75/year. <a href="https://dbschema.com/purchase.html?currency=USD">Pricing and license terms</a>.</p><h3>4. <a href="https://www.phpmyadmin.net/">phpMyAdmin</a></h3><p>phpMyAdmin is a web application for MySQL and MariaDB administration, free under the GNU GPL with a single edition. <a href="https://www.phpmyadmin.net/">Project overview</a> · <a href="https://www.phpmyadmin.net/license/">License</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pGb-A-RdL_tXReiH.png" /></figure><p><strong>Feature highlights</strong></p><ul><li><strong>Browser access:</strong> nothing to install on the desktop</li><li><strong>Designer:</strong> a graphical view of tables and relationships</li><li><strong>Structure editor:</strong> tables, columns, and indexes through forms</li><li><strong>User management:</strong> accounts and privileges</li><li><strong>Import and export:</strong> SQL, CSV, and other formats</li><li><strong>SQL tab:</strong> run queries directly against the server</li></ul><p>I used a Docker deployment. After connecting, I ran the delivered-product revenue query and created a composite index on orders(status, ordered_at) through the Structure interface.</p><p>The <a href="https://docs.phpmyadmin.net/en/latest/relations.html">Designer</a> availability and saved layouts depend on the installation’s configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PxU5cPHHk-JWJ-CU.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WmxPIdlTOfve0GUL.png" /></figure><p>phpMyAdmin running a product-revenue query and showing the composite status-and-date index created on the orders table.</p><p><strong>Pros</strong></p><ul><li>Entirely free, with no paid feature tier to unlock.</li><li>Browser access suits shared or hosted environments.</li><li>Useful table, index, import/export, and user-management controls.</li></ul><p><strong>Cons</strong></p><ul><li>Requires a running PHP/web-server stack or container deployment.</li><li>Feels more like an administration console than a desktop development workspace.</li><li>Designer may need additional configuration.</li></ul><blockquote><strong><em>My personal note:</em></strong><em> It works, but it looks and feels like an admin panel from years ago.</em></blockquote><p><strong>Price:</strong> $0 for the software. Hosting or infrastructure costs, if any, are separate.</p><h3>5. <a href="https://dbeaver.com/">DBeaver</a></h3><p>I tested DBeaver Ultimate 26.2.0. Its wider appeal is database coverage: MySQL alongside PostgreSQL and many other JDBC-based systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fcdV9xNysuMKSSF7.png" /></figure><p><strong>Feature highlights</strong></p><ul><li><strong>SQL editor:</strong> one editor for MySQL and dozens of other databases</li><li><strong>ER diagrams:</strong> view tables and relationships</li><li><strong>Visual query builder:</strong> build joins without writing SQL (Lite and up)</li><li><strong>Graphical execution plans:</strong> read plans as a diagram (Lite and up)</li><li><strong>JSON and XML viewer:</strong> format nested values beside the result grid</li><li><strong>Schema and data compare:</strong> spot differences between databases (Enterprise, Ultimate)</li><li><strong>Task scheduler:</strong> automate recurring jobs (Enterprise, Ultimate)</li><li><strong>Data transfer:</strong> import, export, and move data between databases</li></ul><p>The JSON value viewer was useful with the store’s products.specifications column. I opened the Value panel and formatted the selected product&#39;s specification, keeping the product rows visible beside it.</p><p>I also generated an execution plan for the delivered-product revenue query. The graphical view displayed sorting, grouping, nested loops, and table-access methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WdeZgcWLFPPIHdCI.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*unOut3KF-OG6GzOG.png" /></figure><p>DBeaver inspecting JSON product specifications and visualizing the revenue query’s execution plan in Ultimate.</p><p><strong>Pros</strong></p><ul><li>Graphical execution plans that make MySQL plans easy to read.</li><li>Useful JSON cell inspection and formatting.</li><li>Convenient for working across several database engines.</li></ul><p><strong>Cons</strong></p><ul><li>The number of panels and settings takes time to learn.</li><li>Visual query building, graphical plans, and advanced development tools are in paid editions.</li></ul><blockquote><strong><em>My personal note:</em></strong><em> Too many panels and settings; finding the right option took longer than it should.</em></blockquote><p><strong>Price:</strong> Community is free. Annual plans are Lite $113, Enterprise $255, and Ultimate $510. <a href="https://dbeaver.com/edition/">Compare editions</a>.</p><h3>6. <a href="https://www.navicat.com/en/products/navicat-for-mysql">Navicat for MySQL</a></h3><p>I tested Navicat 18 for MySQL, which pairs a polished editor with data-quality and modeling tools. <a href="https://www.navicat.com/en/products/navicat-for-mysql">Product overview</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UFIFsae1QttulU3A.png" /></figure><p><strong>Feature highlights</strong></p><ul><li><strong>Data Profiling:</strong> statistics and value distributions for any column</li><li><strong>Query Builder:</strong> visual joins and filters, with the SQL shown alongside</li><li><strong>ER Diagram View:</strong> an automatic diagram of the database (Standard, Enterprise)</li><li><strong>Data modeling:</strong> reverse-engineer into a model workspace (Enterprise)</li><li><strong>Data transfer and sync:</strong> move and synchronize data between databases</li><li><strong>Backup and automation:</strong> scheduled backups and batch jobs</li><li><strong>BI tools:</strong> charts and dashboards (Enterprise)</li></ul><p><strong>Data Profiling</strong> was the most interesting part of this test. Profiling all 600 orders and selecting status showed five distinct statuses, null/non-null statistics, and a value-distribution chart, without writing an aggregation query.</p><p>I also built the orders–order items–products query visually, with a delivered-status filter and the generated SQL alongside the diagram. For the model diagram, I reverse-engineered the database into a workspace; the automatic ER Diagram View is the quicker route.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AVULfVuSPw8wxQWi.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HzyrpQa_nQwOg-dh.png" /></figure><p>Navicat building a joined order query visually and profiling the distribution of five statuses across 600 orders.</p><p><strong>Pros</strong></p><ul><li>Data profiling combines useful statistics and distributions with the table grid.</li><li>Visual query building, modeling, and migration-related tools in one product family.</li><li>Native desktop versions for Windows, macOS, and Linux.</li></ul><p><strong>Cons</strong></p><ul><li>The modeling workspace adds setup.</li><li>Product editions and purchasing channels need careful comparison.</li></ul><blockquote><strong><em>My personal note:</em></strong><em> Reverse-engineering into a model workspace took more preparation than I expected for a simple diagram.</em></blockquote><p><strong>Price:</strong> The publisher’s US Mac App Store listing for Navicat 18 for MySQL shows $279.99/year. Direct-store licenses and edition terms can differ. <a href="https://apps.apple.com/us/app/navicat-18-for-mysql/id1597453432?mt=12">Verified annual listing</a>.</p><h3>7. <a href="https://www.dbgate.io/">DbGate</a></h3><p>I tested DbGate Premium, which runs as a desktop application or a self-hosted web application. <a href="https://docs.dbgate.io/dbgate/">Editions and platforms</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YxdhYjS_QZxasjjC.png" /></figure><p><strong>Feature highlights</strong></p><ul><li><strong>Query Designer:</strong> join tables visually and see results in the same view</li><li><strong>Charts:</strong> turn results into charts saved with the SQL script</li><li><strong>ER diagrams:</strong> a relationship view of the database</li><li><strong>Editable results:</strong> change data directly in query output</li><li><strong>Compare tools:</strong> find differences between databases</li><li><strong>AI assistance:</strong> help writing queries</li><li><strong>Web or desktop:</strong> run it locally or host it for a team</li></ul><p>I used Query Designer to join orders, order items, and products and display delivered-order results in the same workspace. Then I turned the top ten products’ delivered-order revenue into a bar chart, setting the category, measure, and aggregation. Because the chart configuration is saved with the SQL script, the chart is reusable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*elQ7QSAlsQQOr3l5.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*akYigxqS8FxK66ol.png" /></figure><p>DbGate Premium showing visual query joins and a bar chart of the top ten products by delivered-order item revenue.</p><p><strong>Pros</strong></p><ul><li>Modern interface with an approachable query-and-results layout.</li><li>Charts are a useful next step after a result grid.</li><li>Desktop and self-hosted web options.</li></ul><p><strong>Cons</strong></p><ul><li>Query Designer and charts are Premium features.</li></ul><blockquote><strong><em>My personal note:</em></strong><em> The features I liked most, Query Designer and charts, are locked behind Premium.</em></blockquote><p><strong>Price:</strong> Community is free. Premium is $120/year for one user, with a 30-day trial. <a href="https://www.dbgate.io/pricing/">Pricing</a>.</p><h3>8. <a href="https://webyog.com/product/sqlyog/">SQLyog</a></h3><p>I tested the commercial SQLyog trial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DqOtZW2uSBW3-OMh.png" /></figure><p><strong>Feature highlights</strong></p><ul><li><strong>Schema Designer:</strong> visual table and relationship design</li><li><strong>Query Builder:</strong> build queries by selecting tables and fields</li><li><strong>Query profiler:</strong> analyze how a query runs</li><li><strong>Schema and data sync:</strong> keep two databases aligned</li><li><strong>Scheduled backups:</strong> automated, recurring exports</li><li><strong>SSH and HTTP tunneling:</strong> reach servers behind firewalls</li></ul><p>I built the orders–order items–products query visually. It worked, but selecting additional fields and finding the Criteria row took longer than expected, and I had to move the generated SQL into the Query Editor to run it.</p><p>I then worked through the backup wizard. The trial limits each backup job to two objects, so I selected categories and products, and the log confirmed both exported successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*5f2U4xvH5DC3gARq.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DuI3Bcn_YRXZzyRc.png" /></figure><p>SQLyog’s visual query builder and the successful export of the categories and products tables through its backup wizard.</p><p><strong>Pros</strong></p><ul><li>A substantial collection of MySQL administration utilities.</li><li>Visual schema tools and backup automation.</li><li>Perpetual licensing with first-year maintenance included.</li></ul><p><strong>Cons</strong></p><ul><li>Native Windows application.</li><li>The query-builder execution workflow is less direct.</li><li>The backup wizard spreads configuration across many screens.</li></ul><blockquote><strong><em>My personal note:</em></strong><em> I had to copy the SQL from the visual query builder into the query editor and run it to see the results. The backup wizard also had too many pages for my liking.</em></blockquote><p><strong>Price:</strong> Community is free. The commercial store lists a $299 perpetual license with first-year maintenance. The two-object backup limit applies only to the trial. <a href="https://store.webyog.com/product/sqlyogpricing">Pricing</a> · <a href="https://faq.webyog.com/content/33/137/en/are-there-restrictions-in-the-sqlyog-trial-compared-to-the-registered-versions.html">Trial limits</a> · <a href="https://webyog.com/article/58-the-sqlyog-query-builder/">Builder workflow</a>.</p><h3>9. <a href="https://www.heidisql.com/">HeidiSQL</a></h3><p>HeidiSQL is free and open source, with a single edition. Native builds are offered for Windows, Linux, and macOS (Apple Silicon); I tested the Windows version. <a href="https://www.heidisql.com/">Features</a> · <a href="https://www.heidisql.com/download.php">Downloads</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RPzlRVVpD9lPbD3D.png" /></figure><p><strong>Feature highlights</strong></p><ul><li><strong>SQL editor:</strong> completion and formatting</li><li><strong>Table editor:</strong> columns, types, defaults, and constraints in one view</li><li><strong>Indexes and foreign keys:</strong> manage them from the table editor</li><li><strong>User manager:</strong> accounts and privileges</li><li><strong>Export and transfer:</strong> to SQL files, compressed files, the clipboard, or another server</li><li><strong>Server processes:</strong> see and kill running queries</li><li><strong>Multiple engines:</strong> also MariaDB, PostgreSQL, SQL Server, and SQLite</li></ul><p>The table editor gave a clear view of columns, types, defaults, indexes, and constraints. I also ran the delivered-order query and inspected the <a href="https://www.heidisql.com/help.php">SQL export</a> configuration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ba4FAf6ddAFCHi2s.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OvCOIpi_8VzrTGs-.png" /></figure><p>HeidiSQL running a joined order query and configuring SQL export options for the store database.</p><p><strong>Pros</strong></p><ul><li>No license fee or paid upgrade for the tools shown.</li><li>Practical table editing and flexible export destinations.</li><li>Native Linux and macOS downloads broaden its usefulness beyond Windows.</li></ul><p><strong>Cons</strong></p><ul><li>No built-in ER diagram in the Windows version tested.</li><li>The Windows interface feels dated to me.</li><li>Less suitable when visual modeling is the main requirement.</li></ul><blockquote><strong><em>My personal note:</em></strong><em> I missed an ER diagram, and the interface looks old-fashioned next to the others.</em></blockquote><p><strong>Price:</strong> $0. Donations are optional.</p><h3>Why not MySQL Workbench?</h3><p><a href="https://www.mysql.com/products/workbench/">MySQL Workbench</a> is Oracle’s free, official MySQL client, so it’s the first tool many people try. Oracle rebuilt it as Workbench 26 in 2026. It still has a SQL editor, Visual Explain, and admin tools like server status, user accounts, and performance reports. But when I tested it, the EER diagram and reverse-engineering tools from version 8.0 were gone, and the Database menu now only holds admin options.</p><p>Opening a table’s data just adds a generated SELECT and its results to the same notebook, mixed in with your other queries, instead of a dedicated data view. Workbench 8.0 still has the modeling tools, but it&#39;s end-of-life. For visual work, it&#39;s hard to recommend right now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Usc1cumzhqSOpsZz.png" /></figure><h3>Which client would I choose?</h3><p>For most visual MySQL work, I’d start with <a href="https://visualeaf.com/"><strong>VisuaLeaf</strong></a>. Query building, diagrams, profiling, and data comparison are all in one place, and it runs on Windows, macOS, and Linux. It’s also useful if you work with MongoDB alongside MySQL.</p><p>For the other tools, it depends on what you do most:</p><ul><li><strong>MySQL development and administration on Windows:</strong> dbForge Studio for MySQL. Standard already includes the profiler and Master-Detail Browser shown here.</li><li><strong>Modeling and test data:</strong> DbSchema Pro, especially if the design model is part of your daily work.</li><li><strong>Many different databases:</strong> DBeaver, if you can live with its learning curve.</li><li><strong>Data-quality checks:</strong> Navicat, for its Data Profiling view.</li><li><strong>Visual queries followed by charts:</strong> DbGate Premium.</li><li><strong>Browser access or shared hosting:</strong> phpMyAdmin.</li><li><strong>A free, lightweight editor:</strong> HeidiSQL.</li><li><strong>Admin and backup tools over interface:</strong> SQLyog.</li></ul><p>A few things are worth checking before you buy:</p><ul><li><strong>Your operating system.</strong> dbForge and SQLyog are Windows-native. On a Mac or Linux, they need extra setup.</li><li><strong>Owning or renting.</strong> VisuaLeaf, DbSchema, and SQLyog offer perpetual licenses. dbForge and Navicat sell both perpetual and subscription licenses. DBeaver and DbGate are subscriptions.</li><li><strong>The right edition.</strong> Profilers, comparison tools, and generators are usually in paid editions.</li></ul><p>My advice is to pick a client around the work you repeat. A paid feature is easy to justify when it replaces a task you’d otherwise do by hand.</p><p>If you want to try the workflow from the first section, <a href="https://visualeaf.com/download">download VisuaLeaf</a> and connect it to your own MySQL database during the 14-day Professional trial.</p><p><strong>Mostly designing schemas, not managing data?</strong> See our guide to the best database design tools for 2027, which compares modelers, ER diagram tools, and browser-based options across MySQL, PostgreSQL, and more.</p><p><a href="https://visualeaf.com/blog/best-database-design-tools/">Best Database Design Tools for 2027: Windows, macOS &amp; Linux</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zpq2DbrTvmGLmMS_.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=993a175c3bd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use Databricks SQL With the VisuaLeaf Database Client]]></title>
            <link>https://medium.com/@visualeaf/how-to-use-databricks-sql-with-the-visualeaf-database-client-7b02cdfa5ecb?source=rss-57c6e0e240c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b02cdfa5ecb</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[VisuaLeaf]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 20:53:40 GMT</pubDate>
            <atom:updated>2026-11-25T20:53:40.086Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kIzPUL4eIkYdXKr-sU2EiA.png" /></figure><p>Databricks is a cloud platform teams use to prepare and analyze data. I connected <a href="https://visualeaf.com/">VisuaLeaf </a>to Databricks to run SQL, find the columns I needed for a join, and compare two versions of a table to see which rows had changed.</p><h3>What is Databricks used for?</h3><p>A retailer can use <a href="https://docs.databricks.com/aws/en/introduction">Databricks</a> to combine orders from its application database with tracking events from shipping carriers. Data engineers build the pipeline that turns those feeds into tables. Analysts can then use SQL to find late shipments, and data scientists can use the same data to train models.</p><h3>How Databricks SQL runs a query</h3><p>A <a href="https://docs.databricks.com/aws/en/sql/"><strong>SQL warehouse</strong></a> runs your query and reads the table data from <a href="https://docs.databricks.com/aws/en/getting-started/high-level-architecture">cloud storage</a>. <strong>Unity Catalog</strong> organizes tables into catalogs and schemas and controls who can access them. When you write SQL in VisuaLeaf, it sends the query to the warehouse and displays the results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F0moNt9a5bKAMxop.png" /></figure><p>A full table name follows the pattern catalog.schema.table, as in workspace.fulfillment_demo.shipments. Use all three parts when staging and production have tables with the same name.</p><h3>Connect VisuaLeaf to a SQL warehouse</h3><p>In Databricks, go to <strong>SQL Warehouses</strong>, open your warehouse, and copy the <strong>Server hostname</strong> and <strong>HTTP Path</strong> from <a href="https://docs.databricks.com/aws/en/integrations/jdbc-oss/configure"><strong>Connection details</strong></a>. The hostname identifies the workspace. The HTTP path selects the warehouse.</p><p>Create a Databricks connection in VisuaLeaf with these settings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*HHwJ0sLB0cDN2qkhCv0y1A.png" /></figure><p>For a token-based connection, go to <strong>Settings → Developer → Access tokens → Manage</strong> in Databricks and <a href="https://docs.databricks.com/aws/en/dev-tools/auth/pat">generate a token</a>. Enter it in the <strong>Personal access token</strong> field in VisuaLeaf.</p><p>Click <strong>Test Connection</strong>, then <strong>Save and connect</strong>. In the build I tested, JDBC URL <strong>Auto-Fill</strong> put the HTTP path in <strong>Catalog</strong>. If you see that, switch back to <strong>SQL Warehouse</strong> mode, clear the JDBC parameters from <strong>Catalog</strong>, and enter the fields manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/0*G-mr7MhAkol3WUBW.png" /></figure><p>Once you connect, run this to see the catalog and schema your session starts in.</p><pre>SELECT current_catalog(), current_schema();</pre><p>I opened shipment_events to check what its nested columns looked like in the table browser. Expanding a struct showed the individual fields without having to write a new query. If your connection works and a table query fails, check the three-part name and your <a href="https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/privileges-reference">Unity Catalog grants</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GQeMhvSiTvmEbwgT.png" /></figure><h3>What I used VisuaLeaf for:</h3><h4>Compare a source table with staging</h4><p>In <a href="https://visualeaf.com/features/data-compare/"><strong>Data Compare</strong></a>, I paired shipment_notes with shipment_notes_staging and matched rows on note_id. The <strong>Structure</strong> tab flagged a separate difference. The source declares a foreign key from shipment_id to shipments.shipment_id. The staging table leaves it out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qeh-xR3rTn456ZBr.png" /></figure><p>Check that the match key is unique on both sides. Databricks treats <a href="https://docs.databricks.com/aws/en/tables/constraints">primary and foreign keys</a> on these Unity Catalog Delta tables as informational, so a declared primary key can still have duplicate values. Run this against the staging table and repeat it for the source.</p><pre>SELECT note_id, COUNT(*) AS copies<br>FROM workspace.fulfillment_demo.shipment_notes_staging<br>GROUP BY note_id<br>HAVING COUNT(*) &gt; 1;</pre><p>If it returns rows, resolve the duplicates or pick a key that identifies one record on each side. For an order-line table, that might be the order ID and line number together.</p><h4>Check the join before running it</h4><p>Catalog Explorer has its own <a href="https://docs.databricks.com/aws/en/catalog-explorer/entity-relationship-diagram">relationship view</a> for tables with declared foreign keys. In <a href="https://visualeaf.com/docs/sql-visual-schema"><strong>Visual Schema</strong></a>, I could move the tables around the canvas and export the model as DBML.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jc6NDJhle9OLM2LO.png" /></figure><p><em>Follow the line from </em><em>shipments.carrier_id to </em><em>carriers.carrier_id to find the columns for the carrier join.</em></p><p>I built the join in <a href="https://visualeaf.com/docs/sql-query-builder"><strong>Visual Query Builder</strong></a>, filtered to shipment_status = &#39;Delivered&#39;, and sorted by delivered_on. The query returned 3,479 delivered shipments. If you join orders to shipments, an order with two shipments can appear twice. Count distinct order IDs when the metric is orders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RsSrytLr81X4QZ7_.png" /></figure><p><strong>Columns &amp; Filters</strong> in the result grid work on the loaded page. To apply those conditions across the table, put them in the query’s WHERE clause and rerun it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VotU8QPSVMUeF9ZX.png" /></figure><h4>Save a CSV export you can rerun</h4><p>I saved the orders export as a <a href="https://visualeaf.com/features/task-manager/"><strong>Data Transfer</strong></a> job so I could run it again. The table source worked. In a separate test with a custom SQL source, the preview returned rows and the field mapping stayed empty. If that happens and you need a filtered CSV, run your query in the Databricks SQL editor and <a href="https://docs.databricks.com/aws/en/sql/user/sql-editor/results">download the result</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*woOOmWWw6Fjs4kEN.png" /></figure><h3>Databricks visualization and dashboard examples</h3><p>The demo has a carrier_performance view with one row per carrier. It divides late deliveries by completed deliveries. I kept both counts in the result so I could check the percentage in the chart.</p><pre>SELECT<br>    carrier_name,<br>    delivered_shipments,<br>    delivered_shipments - late_shipments AS on_time_shipments,<br>    late_shipments,<br>    CAST(late_delivery_pct AS DOUBLE) AS late_delivery_pct<br>FROM workspace.fulfillment_demo.carrier_performance<br>ORDER BY late_delivery_pct DESC, carrier_name;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*cWQjojL-fw4RMRne0E6wEw.png" /></figure><p>In <strong>Chart Builder</strong>, I used carrier_name for the category and late_delivery_pct for the bar height. Keeping the chart beside the results in <a href="https://visualeaf.com/features/split-panel-views/"><strong>Split Panel Views</strong></a> made it easy to check the 22.62% against its denominator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8miuFgyM1FapKkP7rYOz8g.png" /></figure><p>You could use the same data in a <strong>Databricks AI/BI dashboard</strong> to track the weekly late delivery rate or break it down by service level. Group by the promised date to report on shipments due that week. Before sharing, check <a href="https://docs.databricks.com/aws/en/dashboards/share/share">whose data permissions the dashboard uses</a>. Databricks can run its queries with the publisher’s or the viewer’s permissions.</p><h3>Connect Power BI to Databricks</h3><p>If your team reports in Power BI, open <strong>Get data</strong> in Power BI Desktop, choose the <a href="https://docs.databricks.com/aws/en/partners/bi/power-bi/desktop">Databricks connector</a>, and enter the warehouse hostname and HTTP path. <strong>Import</strong> loads a copy into Power BI and updates it on refresh. <strong>DirectQuery</strong> queries Databricks when people interact with the report.</p><h3>Databricks SQL with Python</h3><p>The <a href="https://docs.databricks.com/aws/en/dev-tools/python-sql-connector"><strong>Databricks SQL Connector for Python</strong></a> is for scripts that send SQL to a warehouse and fetch the result. This example uses a personal access token from an environment variable. Install databricks-sql-connector and set the three connection variables before running it.</p><pre>from os import environ<br><br>from databricks import sql<br>with sql.connect(<br>    server_hostname=environ[&quot;DATABRICKS_SERVER_HOSTNAME&quot;],<br>    http_path=environ[&quot;DATABRICKS_HTTP_PATH&quot;],<br>    access_token=environ[&quot;DATABRICKS_TOKEN&quot;],<br>) as connection:<br>    with connection.cursor() as cursor:<br>        cursor.execute(&quot;SELECT current_catalog(), current_schema()&quot;)<br>        print(cursor.fetchone())</pre><p>A <a href="https://docs.databricks.com/aws/en/udf/unity-catalog"><strong>Unity Catalog Python UDF</strong></a> executes the Python on Databricks compute. I called delivery_outcome from VisuaLeaf’s SQL Editor, passing DATEDIFF(delivered_on, promised_on) to classify shipments as on time, late, or in transit. VisuaLeaf sent the SQL. Databricks ran the function on the warehouse. Use a serverless or Pro SQL warehouse for this kind of UDF.</p><h3>Which Databricks tool should you open?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*FApp6jgjDI01GgKIkHMeOw.png" /></figure><p>For a first run with your own data, <a href="https://visualeaf.com/download">download VisuaLeaf</a> and start with source and staging tables from a refresh you can verify.</p><h3>Is VisuaLeaf a Databricks App?</h3><p><a href="https://docs.databricks.com/aws/en/dev-tools/databricks-apps/"><strong>Databricks Apps</strong></a> is a service for hosting custom data and AI apps on Databricks. <a href="https://visualeaf.com/">VisuaLeaf</a> is a SQL client installed on your desktop. It connects to a warehouse to run queries and browse your data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b02cdfa5ecb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Server Management on Windows, Mac & Linux with VisuaLeaf]]></title>
            <link>https://javascript.plainenglish.io/sql-server-database-management-with-visualeaf-2972c09890a7?source=rss-57c6e0e240c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2972c09890a7</guid>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[VisuaLeaf]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 08:12:38 GMT</pubDate>
            <atom:updated>2026-11-24T08:13:34.159Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1wnaXggP7Pk-VFvKYZzDBA.jpeg" /></figure><p>A column definition, a query, an execution plan, and a migration job each describe the same data from a different angle, and in SQL Server work, you usually need all four open at once. This article walks through one SQL Server database in <a href="https://visualeaf.com/database/mssql/">VisuaLeaf </a>to show where its workspace helps.</p><p><a href="https://visualeaf.com/">VisuaLeaf </a>brings these tasks into a desktop workspace with a SQL editor, visual query builder, table management, schema diagrams, profiling, data transfer, comparison, and charts. The screenshots here illustrate those workflows from SQL Server testing.</p><h3>Establish the connection and permission boundary</h3><p>A connection needs a server address, port, database, and supported authentication method. The selected database and schema also determine which objects your queries reference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*XeL2mtoWKbXElQnBmAuf8Q.png" /><figcaption>The connection dialog exposes the following authentication options.</figcaption></figure><p>The connection dialog exposes the following authentication options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/0*v0H1P3L36RGhEeEn.png" /></figure><p>Or you can choose different sign-in methods:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/0*GleHGhW42xkmy90R.png" /></figure><p>The completed connection test used a SQL Server login. Validate Windows authentication against your domain and <a href="https://learn.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-overview?view=azuresql">Microsoft Entra authentication</a> against your tenant, including its MFA requirements.</p><p><a href="https://learn.microsoft.com/en-us/sql/relational-databases/security/permissions-database-engine?view=sql-server-ver17">SQL Server permissions</a> govern access to objects and operations. A reporting account can receive access to selected tables or views through database roles and grants. A client-side read-only setting adds an application control on top of those grants.</p><h3>Inspect tables, constraints, and relationships</h3><p>A column’s data type is only part of its definition. Before changing a table or writing data, inspect the properties that SQL Server uses to validate each operation.</p><p>VisuaLeaf’s <a href="https://visualeaf.com/features/table-management/">Table Management</a> exposes column definitions, keys, indexes, and constraints, with generated DDL available for inspection. Read the generated statement when changing a definition so you can see the database operation behind the form.</p><p>An <a href="https://visualeaf.com/docs/sql-visual-schema">ER diagram</a> provides the relationship view. Primary and foreign keys show how tables connect and which joins follow declared constraints. Indexes need separate inspection. SQL Server does not automatically create an index on the referencing columns when you add a <a href="https://learn.microsoft.com/en-us/sql/relational-databases/tables/primary-and-foreign-key-constraints?view=sql-server-ver17">foreign key</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jhOb91LFYi2tt18N.png" /></figure><h3>Build queries visually and retain access to T-SQL</h3><p>The <a href="https://visualeaf.com/docs/sql-query-builder">visual query builder</a> represents tables, join conditions, selected columns, filters, aggregates, and sorting on a canvas. Generated SQL changes with those settings, making the resulting statement available for review.</p><p>Join cardinality still matters. A one-to-many join can repeat a parent row before aggregation. Review the join columns and the unit being counted when adding another table.</p><p>Joins drawn along a foreign key also depend on indexing. SQL Server doesn’t create an index on the referencing columns, so a join that looks right on the canvas can still scan the whole child table:</p><pre>ALTER TABLE dbo.OrderLine<br>  ADD CONSTRAINT FK_OrderLine_Order<br>  FOREIGN KEY (OrderId) REFERENCES dbo.[Order] (OrderId);</pre><pre>-- The constraint does not create this index. Add it yourself:<br>CREATE INDEX IX_OrderLine_OrderId ON dbo.OrderLine (OrderId);</pre><p>A table can also supply a filter or join condition without contributing a selected output column. Its presence in the query graph can therefore remain necessary even when its field list is empty.</p><p>Use the <a href="https://visualeaf.com/docs/sql-editor">SQL editor</a> for CTEs, window functions, multi-statement scripts, and other T-SQL that needs direct editing. The tested workflow confirmed SQL generation from the visual builder. Start visually, then switch to the editor when the query needs more than the canvas can express.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gwy5fvD0MjtXaJCg.png" /></figure><h3>Understand how row editing identifies and changes data</h3><p>Before a grid can update a row, it needs a reliable way to find that row in the table. VisuaLeaf uses the primary key: a table with a key opens as editable, while a result that can’t be traced back to a single table and key opens read-only.</p><p><strong><em>Note:</em></strong><em> Inline edits are written to the database as soon as you confirm them. For changes you may need to roll back, write the </em><em>UPDATE in the </em><a href="https://visualeaf.com/features/sql-editor/"><em>SQL editor </em></a><em>and check its auto-commit and transaction settings first.</em></p><p>Identity columns are handled for you. The Insert Row form marks them <strong>AI</strong> (auto-increment) and leaves them as <em>Auto-generated</em>, so SQL Server assigns the value. The AI badge is the useful signal here: a key icon only tells you a column is the primary key, not that SQL Server generates its value. If you insert an explicit value through T-SQL instead, SQL Server rejects it with Msg 544 unless IDENTITY_INSERT is turned on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/0*_xtqmKrlYPr2InAa.png" /></figure><p><em>For more control, </em><a href="https://visualeaf.com/features/sql-editor/"><em>Open in SQL Editor</em></a><em> moves the insert into the editor, where you can review the statement and run it inside a transaction.</em></p><h3>Work with SQL Server features in their database context</h3><p>T-SQL work can involve views, stored procedures, functions, and triggers as well as tables. Their definitions can contain filters, calculations, and write behavior that matter when reviewing an application database. VisuaLeaf lets you view server<a href="https://visualeaf.com/database/mssql/"> objects</a> and edit their source alongside its query tools.</p><p><a href="https://learn.microsoft.com/en-us/sql/relational-databases/tables/temporal/overview?view=sql-server-ver17">System-versioned temporal tables</a> introduce another distinction. SQL Server maintains validity periods and row history through generated datetime2 columns and system versioning. A temporal query can return several versions of one logical record.</p><p>The temporal test displayed those versions with their validity periods. Review the system-time interval and UTC timestamps when interpreting history results, and distinguish the current row from its recorded versions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0QMHY5kNFmsiDAiA.png" /></figure><h3>Connect profiling statistics to execution plans</h3><p>Profiling and execution plans answer different questions. Statement statistics show execution frequency and accumulated resource use. A plan describes the operators SQL Server uses to access and process rows.</p><p>VisuaLeaf’s <a href="https://visualeaf.com/docs/sql-profiling">profiler</a> presents statement-level execution statistics and lets you inspect a selected statement. Total time, average duration, execution count, and maximum duration each show a different view of the workload. Match the displayed statement to the query you intend to investigate, since catalog and monitoring queries can also appear in the list.</p><p>The graphical plan makes scans, seeks, joins, sorts, aggregates, and spools easier to trace. Identify whether you are viewing an <a href="https://learn.microsoft.com/en-us/sql/relational-databases/performance/display-and-save-execution-plans">estimated or actual plan</a>. Estimated costs describe optimizer estimates. Actual plans add runtime information that can help explain differences in row counts and execution behavior.</p><p>For <a href="https://learn.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-exec-query-stats-transact-sql?view=sql-server-ver17">SQL Server’s cached statement statistics</a>, the lifetime of the counters is tied to the cached plan. Plan eviction can remove the corresponding statistics. In the tested profiler, the Runs tab reported aggregate totals, and chart intervals reflected activity between refreshes. Interpret the time window and counter lifetime before comparing measurements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gsQPy_6fBppG5GvF.png" /></figure><h3>Move data between engines and verify the result</h3><p>Cross-database transfer requires explicit source, target, field, and type mappings. SQL Server types such as smallint and nvarchar need compatible target definitions. Review numeric ranges, text lengths, nullability, and generated-value behavior alongside the column names.</p><p>VisuaLeaf’s <a href="https://visualeaf.com/features/task-manager/">transfer editor</a> exposes source and target configuration, field mapping, transformations, and handling of existing rows. The SQL Server-to-PostgreSQL test completed a lookup-table transfer and displayed the target rows beside the job.</p><p>Use a stable key for the subsequent <a href="https://visualeaf.com/docs/data-compare">comparison</a>. Match logical records by their identifying columns, then inspect changed values and rows present on only one side. Verify both row counts and content. Review schema objects such as indexes, defaults, foreign keys, and temporal definitions separately when planning a full migration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CMVql8GL4AdYAtSw.png" /></figure><h3>Create charts from query results</h3><p>The <a href="https://visualeaf.com/docs/chart-builder">Chart Builder</a> maps SQL result columns to categories, numeric measures, and other visual dimensions. This keeps the query’s joins, filters, and aggregation attached to the result being presented.</p><p>Check the aggregation at both stages. If SQL already returns a count per category, the chart should use that numeric count as its measure. Counting the returned result rows would measure the number of categories instead.</p><p>Also check the denominator behind percentages. A chart built from a limited result set describes that selected set. Its title and labels should make the scope clear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TIBrA66607L33i7A.png" /></figure><h3>Make VisuaLeaf your SQL Server workspace</h3><p><a href="https://visualeaf.com/download">VisuaLeaf</a> brings SQL Server querying, schema inspection, data editing, performance investigation, reporting, and cross-database work into one visual workspace. You don’t have to switch between tools: you can write a query, inspect its plan, chart the result, and move the data to PostgreSQL in the same place.</p><p>It also runs where your team works. VisuaLeaf has <a href="https://visualeaf.com/database/mssql/">Windows, macOS, and Linux clients</a>, so everyone gets the same interface, whatever system they use. <a href="https://learn.microsoft.com/en-us/ssms/system-requirements">SSMS runs only on Windows</a>, so macOS and Linux users need another tool.</p><p>This review focused on day-to-day development and analysis. Server administration, such as backup and restore, SQL Server Agent jobs, and Microsoft Entra sign-in with MFA, wasn’t part of the testing. If your work depends on those, try them against your own server during setup.</p><p>For writing queries, understanding schemas, tuning statements, and moving data between engines, VisuaLeaf gives you a single cross-platform workspace with the SQL always visible behind the visual tools.</p><p><a href="https://visualeaf.com/download"><strong>Download VisuaLeaf</strong></a> and connect it to your SQL Server database to try it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2972c09890a7" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/sql-server-database-management-with-visualeaf-2972c09890a7">SQL Server Management on Windows, Mac &amp; Linux with VisuaLeaf</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s New in PostgreSQL 19: 10 Features With Visual Results]]></title>
            <link>https://medium.com/data-science-collective/whats-new-in-postgresql-19-10-features-with-visual-results-f67285aaf2e1?source=rss-57c6e0e240c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f67285aaf2e1</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[VisuaLeaf]]></dc:creator>
            <pubDate>Fri, 20 Nov 2026 15:42:23 GMT</pubDate>
            <atom:updated>2026-11-20T16:04:56.125Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dE6NgzETCSfagaA8XB4b-g.png" /><figcaption>PostgreSQL 19’s new features, tested side by side with PostgreSQL 18 in VisuaLeaf.</figcaption></figure><p>PostgreSQL 19 is out, released on <a href="https://www.postgresql.org/docs/19/release-19.html">November 19, 2026</a>. So what does it actually bring? Instead of summarizing the release notes, we installed it next to PostgreSQL 18 and tried the new features ourselves.</p><p>This release is less about new syntax and more about control: over maintenance, over the query planner, and over replication. Some results were easy to see right away. A table we had bloated by deleting 80% of its rows went from 70 MB to 14 MB with the new REPACK command. The same NOT IN query got a better plan without changing a line of SQL.</p><p>We ran every test in <a href="https://visualeaf.com/docs/sql-editor">VisuaLeaf’s SQL Editor</a>, with PostgreSQL 19 (its final release candidate, RC 2) and PostgreSQL 18.7 open in split editors, running the same SQL on both. These are hands-on lab tests on small datasets, not performance benchmarks.</p><h3>What we tested</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*O9L-NEJtHsyrSHs7Fw_PBQ.png" /></figure><h3>The test environment</h3><p>Everything ran in Docker, inside a dedicated pg19_lab schema.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JLRWiwSE94bJaeUbNfJQBw.png" /></figure><p>To start the two comparison servers (with Docker running; the passwords are local demo credentials):</p><pre>docker run -d --name pg18-demo -p 127.0.0.1:5548:5432 -e POSTGRES_PASSWORD=pg18demo -e POSTGRES_DB=pg18_demo postgres:18.7<br>docker run -d --name pg19-demo -p 127.0.0.1:5549:5432 -e POSTGRES_PASSWORD=pg19demo -e POSTGRES_DB=pg19_demo postgres:19</pre><p>In VisuaLeaf’s <a href="https://visualeaf.com/docs/connection-manager">Connection Manager</a>, add a PostgreSQL connection for each one: host localhost, the port above, user postgres. Then confirm which server you&#39;re on:</p><pre>SELECT current_setting(&#39;server_version&#39;) AS postgres_version,<br>       current_database() AS database_name;</pre><p>Create the lab schema on both servers:</p><pre>CREATE SCHEMA IF NOT EXISTS pg19_lab;</pre><p>Keep auto-commit on, and run maintenance commands (VACUUM, REPACK (CONCURRENTLY), ALTER SYSTEM) as separate statements.</p><h3>1. REPACK reclaims space after large deletes</h3><p>Audit and event tables are a classic case: old rows get deleted, but the space they leave stays inside the table file. PostgreSQL can reuse that space, but it doesn’t give it back to the operating system.</p><p>We created 120,000 events and deleted four out of every five:</p><pre>CREATE TABLE pg19_lab.audit_events (<br>    id bigint PRIMARY KEY,<br>    payload text NOT NULL<br>);<br> <br>INSERT INTO pg19_lab.audit_events (id, payload)<br>SELECT n, repeat(md5(n::text), 16)<br>FROM generate_series(1, 120000) AS g(n);<br> <br>DELETE FROM pg19_lab.audit_events<br>WHERE id % 5 &lt;&gt; 0;</pre><p>After each step, we measured row count and total size (table plus indexes):</p><pre>SELECT count(*) AS event_count,<br>       pg_size_pretty(pg_total_relation_size(&#39;pg19_lab.audit_events&#39;)) AS total_size<br>FROM pg19_lab.audit_events;</pre><p>Then a regular vacuum, followed by the new native command:</p><pre>VACUUM pg19_lab.audit_events;</pre><pre>REPACK (CONCURRENTLY) pg19_lab.audit_events;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*nLOd9oLabbD96J1BmboeRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x5TaR7hDGRmMPKUF.png" /></figure><p>Same 24,000 rows, 80% less space: REPACK took the table from 70 MB down to 14 MB.</p><p>Until now, this needed VACUUM FULL (which blocks the table) or the third-party pg_repack extension. REPACK (CONCURRENTLY) keeps the table readable and writable for most of the rewrite and takes a brief ACCESS EXCLUSIVE lock only for the final swap.</p><p>Before using it in production, note that it needs a primary key or a suitable replica identity, enough free disk space for a full copy of the table, and must run outside a transaction block. See the <a href="https://www.postgresql.org/docs/19/sql-repack.html">REPACK documentation</a>. Routine vacuuming is still required.</p><h3>2. The planner turns NOT IN into an anti join</h3><p>“Find customers who never placed an order” is often written with NOT IN. PostgreSQL 19 can now rewrite that into an anti join when it can prove that no nulls are involved.</p><p>We loaded identical data on both versions: 10,000 customers and 4,000 orders, with a NOT NULL customer reference.</p><pre>CREATE TABLE pg19_lab.demo_customers (<br>    id integer PRIMARY KEY<br>);<br> <br>CREATE TABLE pg19_lab.demo_orders (<br>    id integer PRIMARY KEY,<br>    customer_id integer NOT NULL REFERENCES pg19_lab.demo_customers(id)<br>);<br> <br>INSERT INTO pg19_lab.demo_customers<br>SELECT n FROM generate_series(1, 10000) AS g(n);<br> <br>INSERT INTO pg19_lab.demo_orders<br>SELECT n, n FROM generate_series(1, 4000) AS g(n);<br> <br>ANALYZE pg19_lab.demo_customers;<br>ANALYZE pg19_lab.demo_orders;</pre><p>Same query on both servers:</p><pre>EXPLAIN (ANALYZE, COSTS OFF, TIMING OFF)<br>SELECT c.id<br>FROM pg19_lab.demo_customers AS c<br>WHERE c.id NOT IN (<br>    SELECT o.customer_id<br>    FROM pg19_lab.demo_orders AS o<br>);</pre><p>PostgreSQL 18 used a sequential scan with a hashed subplan filter. PostgreSQL 19 chose a <strong>Hash Anti Join</strong>. Both returned the same 6,000 customers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*apbwYFC3-EKdfTBM.png" /></figure><p>The NOT NULL constraint is what makes this possible. NOT IN behaves differently when nulls are present, so the planner applies the rewrite only when it can prove they aren&#39;t.</p><h3>3. LZ4 is the new default TOAST compression</h3><p>TOAST is how PostgreSQL stores and compresses large values. LZ4 has been available since PostgreSQL 14, but the default was pglz. In PostgreSQL 19, the default is lz4 (when the server is built with LZ4 support, as the official images are).</p><p>We stored the same 32,768-byte text value on both servers:</p><pre>CREATE TABLE pg19_lab.demo_toast (<br>    payload text NOT NULL<br>);<br> <br>INSERT INTO pg19_lab.demo_toast<br>VALUES (repeat(md5(&#39;audit-event&#39;), 1024));<br> <br>SELECT current_setting(&#39;default_toast_compression&#39;) AS default_codec,<br>       pg_column_compression(payload) AS actual_codec,<br>       octet_length(payload) AS original_bytes,<br>       pg_column_size(payload) AS stored_bytes<br>FROM pg19_lab.demo_toast;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*o8Qo5YtmuL0ZB0ye1ncIuw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hTICeQtgW_FszgJpZXGf1w.png" /></figure><p>On this deliberately repetitive value, LZ4 stored 57% fewer bytes. Real data will compress differently, and LZ4’s main advantage is usually speed. Changing the default doesn’t recompress existing data either: only new values use the new codec. See <a href="https://www.postgresql.org/docs/19/runtime-config-client.html">client connection defaults</a>.</p><h3>4. Plan advice: telling the planner what you want</h3><p>When a plan goes bad after a statistics change, PostgreSQL users have long had few options besides rewriting the query or installing an extension. PostgreSQL 19 adds pg_plan_advice, which can describe a plan, reproduce it and adjust it.</p><p>To make the effect obvious, we asked for a sequential scan on a primary-key lookup, which the planner wouldn’t normally choose:</p><pre>LOAD &#39;pg_plan_advice&#39;;<br> <br>SET pg_plan_advice.advice = &#39;SEQ_SCAN(c)&#39;;<br> <br>EXPLAIN (COSTS OFF, PLAN_ADVICE)<br>SELECT c.id<br>FROM pg19_lab.demo_customers AS c<br>WHERE c.id = 5000;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Sso1YLfVLNYPNqSp.png" /></figure><p>The plan switched to Seq Scan, and the output marked the advice as matched. This was only a demonstration: you&#39;d use advice to fix a real plan problem, not to force a worse plan. Reset it afterwards:</p><pre>RESET pg_plan_advice.advice;</pre><h3>Stashed advice applies automatically</h3><p>The companion pg_stash_advice module ties advice to a query identifier, so it applies every time that query runs, with no SET in the application.</p><pre>CREATE EXTENSION IF NOT EXISTS pg_stash_advice;<br>LOAD &#39;pg_stash_advice&#39;;<br>SET compute_query_id = on;<br> <br>EXPLAIN (VERBOSE, COSTS OFF, PLAN_ADVICE)<br>SELECT c.id<br>FROM pg19_lab.demo_customers AS c<br>WHERE c.id = 5000;</pre><p>The output includes a Query Identifier. We used it to create a stash:</p><pre>SELECT pg_create_advice_stash(&#39;pg19_demo_advice&#39;);<br> <br>-- Use the query identifier from your own EXPLAIN output.<br>SELECT pg_set_stashed_advice(&#39;pg19_demo_advice&#39;, 74909709696979601, &#39;SEQ_SCAN(c)&#39;);<br> <br>SET pg_stash_advice.stash_name = &#39;pg19_demo_advice&#39;;</pre><p>Running the same EXPLAIN again showed the sequential scan, with the advice coming from the stash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w5CuQwpPROSBp2Vc.png" /></figure><p>Query identifiers vary between environments, so get your own. Our stash lived in shared memory for the session; keeping it across restarts needs extra setup, described in the <a href="https://www.postgresql.org/docs/19/pgstashadvice.html">pg_stash_advice documentation</a>. See also the <a href="https://www.postgresql.org/docs/19/pgplanadvice.html">plan advice module</a>.</p><pre>RESET pg_stash_advice.stash_name;</pre><h3>5. I/O workers scale automatically</h3><p>PostgreSQL 18 introduced asynchronous I/O with a fixed pool of io_workers. PostgreSQL 19 replaces that with a pool that grows and shrinks between a minimum and a maximum.</p><pre>SELECT name, setting AS value, unit<br>FROM pg_settings<br>WHERE name IN (&#39;io_method&#39;, &#39;io_workers&#39;, &#39;io_min_workers&#39;, &#39;io_max_workers&#39;,<br>               &#39;io_worker_idle_timeout&#39;, &#39;io_worker_launch_interval&#39;)<br>ORDER BY name;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wLmnkGs3sF_hqsMlvMq_2Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*lv39CbnVUnhxjpmR-Wvv7w.png" /></figure><p>We then ran repeated scans on a 500,000-row table and watched the pool from a second editor:</p><pre>SELECT count(*) AS io_workers<br>FROM pg_stat_activity<br>WHERE backend_type = &#39;io worker&#39;;</pre><p>The count climbed from <strong>2 to 8</strong> under load, then dropped back to <strong>2</strong> once the scans stopped. Your workload may peak at a different number. See <a href="https://www.postgresql.org/docs/19/runtime-config-resource.html">I/O configuration</a>.</p><h3>6. Logical decoding without a restart</h3><p>Turning on logical replication used to mean changing wal_level to logical and restarting the server. In PostgreSQL 19, a server with wal_level = replica raises its <strong>effective</strong> WAL level automatically when the first logical replication slot is created.</p><pre>SELECT current_setting(&#39;wal_level&#39;) AS configured_wal_level,<br>       current_setting(&#39;effective_wal_level&#39;) AS effective_wal_level,<br>       pg_postmaster_start_time() AS server_started_at;</pre><p>Before any logical slot exists, both levels read replica. Then we created a slot:</p><pre>SELECT * FROM pg_create_logical_replication_slot(&#39;pg19_demo_slot&#39;, &#39;pgoutput&#39;);</pre><p>Re-running the query showed configured_wal_level = replica, effective_wal_level = logical, and the <strong>same server start time</strong>: no restart happened.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*1pr0kneUDPAR81MS.png" /></figure><p>Connection limits, permissions, and worker capacity still need to be in place. See <a href="https://www.postgresql.org/docs/19/runtime-config-wal.html">WAL configuration</a>. Drop the test slot when you’re done, because an unused slot holds back WAL:</p><pre>SELECT pg_drop_replication_slot(&#39;pg19_demo_slot&#39;);</pre><h3>7. Sequences now replicate</h3><p>Migrating with logical replication used to leave a trap: table rows got copied, but sequences on the target stayed behind, so the first insert after cutover could fail on a duplicate key. PostgreSQL 19 adds sequence synchronization to logical replication.</p><p>Our test:</p><ol><li>Create order_number_seq on the publisher and the subscriber, starting at 1000.</li><li>Advance the publisher to 1050.</li><li>Publish all sequences and subscribe; both sides show 1050.</li><li>Advance the publisher to 2000 and refresh the subscriber.</li></ol><pre>-- Publisher<br>CREATE PUBLICATION pg19_sequence_pub FOR ALL SEQUENCES;<br>SELECT setval(&#39;pg19_lab.order_number_seq&#39;, 2000, true);</pre><pre>-- Subscriber<br>ALTER SUBSCRIPTION pg19_sequence_sub REFRESH SEQUENCES;</pre><pre>-- Both<br>SELECT current_database() AS database_name, last_value, is_called<br>FROM pg19_lab.order_number_seq;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uc1m8A7N9Hx9BRKKtEhWSQ.png" /></figure><p><strong>Sequences are copied at subscription time and then on demand with </strong><strong>REFRESH SEQUENCES. They don&#39;t follow every increment continuously.</strong> Run a refresh as part of your cutover. See <a href="https://www.postgresql.org/docs/19/logical-replication-sequences.html">sequence replication</a>.</p><h3>8. Autovacuum: easier to inspect, faster on indexes</h3><h3>See which tables need attention</h3><p>The new pg_stat_autovacuum_scores view shows how urgently each table needs vacuuming or analyzing.</p><p>We deleted 35,000 of 50,000 rows from a table with autovacuum temporarily paused, then checked the scores:</p><pre>SELECT relname AS table_name, score AS priority_score,<br>       vacuum_score, analyze_score, do_vacuum, do_analyze<br>FROM pg_stat_autovacuum_scores<br>WHERE schemaname = &#39;pg19_lab&#39;<br>ORDER BY score DESC, relname;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B9wVyYl_uyGkk-ia.png" /></figure><p>Until now, answering “why hasn’t autovacuum touched this table?” took threshold math by hand. Now it’s one query. The scores change live as statistics and maintenance change.</p><h3>Parallel index vacuuming</h3><p>Autovacuum can now process indexes with parallel workers. This is off by default (autovacuum_max_parallel_workers = 0). We set it to 2, deleted 150,000 of 200,000 rows from a table with two indexes, and the server log confirmed it:</p><pre>tuples: 150000 removed, 50000 remain, 0 are dead but not yet removable<br>parallel workers: index vacuum: 1 planned, 1 launched in total</pre><p>On large tables with many indexes, this is where autovacuum spends most of its time. See <a href="https://www.postgresql.org/docs/19/runtime-config-vacuum.html">vacuum configuration</a>.</p><h3>9. WAIT: read-your-writes on a standby</h3><p>A classic replica bug: the application writes to the primary, immediately reads from an async standby, and gets stale data. PostgreSQL 19’s WAIT FOR LSN makes the reader wait until the standby has replayed up to a given WAL position.</p><p>On the primary, after the write commits, capture the position:</p><pre>SELECT pg_is_in_recovery() AS is_standby,<br>       CASE WHEN pg_is_in_recovery() THEN NULL<br>            ELSE pg_current_wal_insert_lsn()<br>       END AS target_lsn;</pre><p>On the standby, wait for it:</p><pre>WAIT FOR LSN &#39;0/24002738&#39;<br>WITH (MODE &#39;standby_replay&#39;, TIMEOUT &#39;2s&#39;, NO_THROW);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i8QGFPzntKmSApU5.png" /></figure><p>With NO_THROW, check the returned status: success means it&#39;s safe to read, and timeout means the standby is still behind. Run WAIT as its own top-level command, before starting the read&#39;s snapshot. See the <a href="https://www.postgresql.org/docs/19/sql-wait.html">WAIT reference</a>.</p><h3>10. Two SQL additions for everyday queries</h3><h3>IGNORE NULLS in window functions</h3><p>Sensor data with gaps? lag() can now skip NULLs and return the last known value:</p><pre>WITH readings(sample_no, reading) AS (<br>    VALUES (1, 100), (2, NULL), (3, 120), (4, NULL), (5, 150)<br>)<br>SELECT sample_no, reading,<br>       lag(reading) OVER (ORDER BY sample_no) AS previous_row,<br>       lag(reading) IGNORE NULLS OVER (ORDER BY sample_no) AS previous_known<br>FROM readings<br>ORDER BY sample_no;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*M0t2EpA2xMqRXcHmM90poA.png" /></figure><p>See <a href="https://www.postgresql.org/docs/19/functions-window.html">window functions</a>.</p><h3>ON CONFLICT DO SELECT</h3><p>Get-or-create in one statement, without the old DO UPDATE SET email = EXCLUDED.email workaround:</p><pre>CREATE TABLE pg19_lab.demo_contacts (<br>    id integer PRIMARY KEY,<br>    email text NOT NULL UNIQUE,<br>    display_name text NOT NULL<br>);<br> <br>INSERT INTO pg19_lab.demo_contacts VALUES (1, &#39;ana@example.com&#39;, &#39;Ana&#39;);<br> <br>INSERT INTO pg19_lab.demo_contacts (id, email, display_name)<br>VALUES (2, &#39;ana@example.com&#39;, &#39;Another contact&#39;)<br>ON CONFLICT (email) DO SELECT<br>RETURNING id, email, display_name;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*7SBV6_kWRPvrSTE1.png" /></figure><p>It returns Ana’s existing row (1, ana@example.com, Ana) with no write and no dead tuple. See <a href="https://www.postgresql.org/docs/19/sql-insert.html">INSERT</a>.</p><h3>More visibility into the server</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zbb9r1VzrdKeVSVKaYwtHw.png" /></figure><p>See the <a href="https://www.postgresql.org/docs/19/monitoring-stats.html?ref=visualeaf.com">statistics documentation</a>.</p><h3>Defaults and compatibility changes to check before upgrading</h3><p>We ran the same settings query on both versions side by side:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Z8HpwNC3xDKR03gs.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*mo4hSExlvDqgOWD4ELRggw.png" /></figure><p>From the <a href="https://www.postgresql.org/docs/19/release-19.html#RELEASE-19-MIGRATION">migration notes</a>:</p><ul><li><strong>standard_conforming_strings is always on.</strong> Dumps taken with older tools with it set to off won&#39;t restore correctly. Re-dump with PostgreSQL 19&#39;s tools.</li><li><strong>JIT is off by default.</strong> If your analytical queries relied on it, turn it back on explicitly.</li><li><strong>RADIUS authentication is removed.</strong></li><li><strong>io_workers is replaced</strong> by io_min_workers and io_max_workers.</li><li><strong>Database, role and tablespace names</strong> can no longer contain carriage returns or line feeds.</li><li><strong>max_locks_per_transaction is 128,</strong> but lock allocation also changed, so this isn&#39;t simply double the old capacity.</li></ul><p>Read the full notes for index, locale and extension items that may affect your schema.</p><h3>What didn’t make it</h3><p>If you read PostgreSQL 19 coverage from the beta period, some features you saw won’t be in the release. The <a href="https://www.postgresql.org/about/news/postgresql-19-beta-4-released-3386/">Beta 4 announcement</a> reverted, among others:</p><ul><li>SQL/PGQ property graph queries (GRAPH_TABLE)</li><li>Online enabling and disabling of data checksums</li><li>Temporal UPDATE/DELETE with FOR PORTION OF</li><li>MERGE PARTITIONS / SPLIT PARTITION</li></ul><h3>What to test first</h3><p>Start with what hurts today:</p><ul><li><strong>Bloated tables?</strong> Measure size, run REPACK (CONCURRENTLY) on a copy, and measure again.</li><li><strong>Critical queries?</strong> Compare their plans on 18 and 19, side by side.</li><li><strong>Reading from replicas?</strong> Try WAIT FOR LSN on the paths where stale reads cause bugs.</li><li><strong>Upgrading?</strong> Diff your settings and check the JIT and standard_conforming_strings changes first.</li></ul><p>PostgreSQL 19 also includes features we didn’t test here: faster foreign-key checks, earlier aggregation in some join plans, JSON output from COPY, new SQL/JSON path string methods, and server-side TLS SNI. The <a href="https://www.postgresql.org/docs/19/release-19.html">release notes</a> cover them all.</p><h3>Try PostgreSQL 19 in VisuaLeaf</h3><p>Every result in this article came from the same workflow: two servers, two SQL Editors side by side, one query. That’s how we saw a 70 MB table drop to 14 MB, a hashed subplan turn into a Hash Anti Join, and a standby report success the moment it caught up. You can&#39;t see a difference that clearly by switching between terminal windows.</p><p>You can run the same lab in a few minutes:</p><ol><li><a href="https://visualeaf.com/"><strong>Download VisuaLeaf</strong></a>.</li><li>Start PostgreSQL 18 and 19 with the two Docker commands at the top of this article.</li><li><a href="https://visualeaf.com/docs/connection-manager">Add both connections</a>, open a SQL Editor for each, and paste in the queries from this article.</li></ol><p>Begin with the settings comparison and the NOT IN plan. Those two take under a minute, and they show you what changes when you upgrade.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f67285aaf2e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science-collective/whats-new-in-postgresql-19-10-features-with-visual-results-f67285aaf2e1">What’s New in PostgreSQL 19: 10 Features With Visual Results</a> was originally published in <a href="https://medium.com/data-science-collective">Data Science Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle Developer Tools: One Workspace for SQL, Diagrams and Charts]]></title>
            <link>https://medium.com/@visualeaf/oracle-developer-tools-one-workspace-for-sql-diagrams-and-charts-02ab4431a8ff?source=rss-57c6e0e240c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/02ab4431a8ff</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[VisuaLeaf]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 21:03:52 GMT</pubDate>
            <atom:updated>2026-11-10T21:03:52.229Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h2jNW4sv-O_Pt0kvn1Tm0A.png" /></figure><p>If you work with <a href="https://www.oracle.com/">Oracle</a> every day, try counting the windows you have open right now. There’s probably a SQL client. Maybe a data modeler, or an ER diagram someone exported to PDF last spring. A spreadsheet where you pasted query results so your manager could see a chart. And somewhere, a text file with an execution plan you keep meaning to read properly.</p><p>None of those tools is bad on its own. The trouble is the space between them. Every time you copy a result set into Excel, or redraw a relationship by hand because the diagram is out of date, you’re doing work the tools should be doing for you.</p><p>We build <a href="https://visualeaf.com/">VisuaLeaf</a>, and Oracle has been a big part of our work this year. So instead of another feature list, this article goes through the everyday jobs of an Oracle developer and shows how we handle each one in a single workspace. Every screenshot comes from a real Oracle schema: a small retail order system with customers, orders, payments, shipments, and inventory.</p><h3>What “Oracle developer tools” really means day to day</h3><p>When people search for Oracle developer tools, they usually aren’t looking for one magic product. They’re trying to cover a handful of jobs:</p><ul><li>writing and running SQL against a live database</li><li>understanding how tables relate before touching them</li><li>figuring out why a query is slow</li><li>changing table structure, constraints, and triggers safely</li><li>showing the results to someone who doesn’t read SQL</li></ul><p>Most teams cover these with three or four separate tools. Here’s what it looks like when they live in one place.</p><h3>1. An Oracle SQL editor that knows your schema</h3><p><a href="https://visualeaf.com/features/sql-editor/">The SQL editor</a> is where most of the day goes, so it has to stay out of your way. In VisuaLeaf, the editor reads your Oracle schema as you type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UXAwC77NymDwIER3.png" /><figcaption>Autocomplete that knows your tables, columns, and constraints.</figcaption></figure><p>In the screenshot, we’re writing a revenue-by-category query: ORDER_ITEMS joined to PRODUCTS and CUSTOMER_ORDERS, with cancelled orders filtered out. Type i.ORD and the editor suggests ORDER_ID from ORDER_ITEMS. It also tells you the column’s type and that it’s NOT NULL, so you know what you’re joining on without opening the table.</p><p>Run it, and the results show up right underneath: seven categories, from Accessories down to Computers. Messages and History sit in tabs next to the results, so you can check what ran without leaving the editor.<br> You can also run just the selected lines, or run up to the line your cursor is on, and save the whole thing as a script.</p><p>It sounds small. But a good Oracle SQL client is mostly about removing those tiny interruptions, and they add up fast over a working week.</p><h3>2. Sketch the query before you write it</h3><p>Some queries are easier to see than to type, especially when you’re working in a schema you didn’t design yourself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nexYbZgj_g4kLmHn.png" /><figcaption>Build the join on the canvas and the SQL is auto-generated for you.</figcaption></figure><p>With the <a href="https://visualeaf.com/features/visual-query-builder/">visual query builder</a>, you drop tables onto a canvas and VisuaLeaf connects them on their keys. You choose the join type, add filters and sorting from the side panel, and the SQL is generated as you go, right above the results. When you want to fine-tune it by hand, switch to the SQL editor and keep going.</p><p>It’s handy for a quick two-table join, and even more so when a query grows to four or five tables, and you’d rather see the connections than untangle them in text.</p><h3>3. Explain plans you can read in ten seconds</h3><p>This is the feature we’re most proud of, because Oracle execution plans are famously hard to read as plain text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*flB3bZkDPl2VnAUf.png" /><figcaption>Cost bars and Full Scan labels show where the query spends its time.</figcaption></figure><p>When a query is slow, the execution plan tells you why. The problem is that Oracle gives it to you as a dense block of text.</p><p><a href="https://visualeaf.com/features/query-profiler/">Visual Explain</a> turns it into a tree you can read from top to bottom, one step per card:</p><ul><li><strong>SELECT</strong> is the final result your query returns.</li><li><strong>SORT</strong> is Oracle putting the rows in order, here because of the ORDER BY.</li><li><strong>HASH JOIN</strong> is how Oracle matches rows from two tables. It builds a lookup from one table and checks the other against it.</li><li><strong>FULL TABLE SCAN</strong> means Oracle reads every row in the table to find the ones it needs. On small tables, that’s fine. On large ones, it’s often the reason a query is slow.</li></ul><p>Each step shows its cost, the number of rows it handles, and a colored bar from low to very high cost, so the expensive parts stand out at a glance. Full scans get a warning label, and you can collapse branches, switch to the SQL or JSON view, or re-run the query after a change to see if the plan improved.</p><p>And if you’re still not sure what you’re looking at, <a href="https://visualeaf.com/features/ai-helper/">AI Explain</a> describes the plan in plain language and points you to what’s worth fixing first.</p><h3>4. Oracle data modeling with live ER diagrams</h3><p>Most ER diagrams die the week after they’re drawn. The schema changes, nobody updates the picture, and soon nobody trusts it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*al-BQ0BuwcCihOki.png" /></figure><p><a href="https://visualeaf.com/features/visual-schema/">VisuaLeaf builds the ER diagram</a> straight from your live Oracle schema, using the foreign keys that already exist. No drawing by hand, and it doesn’t go out of date.</p><p>From there, you can change the design right on the canvas, edit columns and keys in the side panel, or switch to DBML if you prefer text. When everything looks right, click Materialize to apply the changes to the database.</p><p>Generate, edit, materialize. That’s the whole Oracle data modeling workflow, in one place.</p><h3>5. Tables, constraints and PL/SQL triggers without hand-written DDL</h3><p>Opening a table gives you its full picture in tabs: columns with Oracle data types, defaults and identity columns, then constraints, triggers, partitions and storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rIYwJSKkYk_gv8wR.png" /></figure><p>Triggers are a good example of why this matters. On CUSTOMER_ORDERS in the demo, there are two: TRG_ORDERS_UPDATED_AT, which sets :NEW.updated_at := SYSTIMESTAMP before every update, and TRG_ORDER_STATUS_AUDIT, which writes each status change into an ORDER_STATUS_HISTORY table. In many tools you&#39;d have to go hunting for those in a separate object tree. Here they sit right on the table they belong to, where you can read the PL/SQL source, create a new trigger, or drop an old one.</p><p>It’s the kind of thing that saves you from the classic “why does updated_at keep changing?”</p><h3>6. A bit of Oracle BI, without leaving your client</h3><p>Here’s a situation you probably know. You’ve written a nice query, revenue by product category, and someone asks for “a quick chart”. So you export to CSV, open a spreadsheet, build the chart, take a screenshot, and paste it into Slack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3bTfWDkEhlTq_5UJ.png" /></figure><p>In VisuaLeaf, you skip all of that. Run your query, switch the results to chart view, and the tool picks the axes for you: categories on X, numbers on Y. <a href="https://visualeaf.com/features/chart-builder/">Your chart is already there.</a></p><p>If you want something different, change the chart type (bar, line, area, pie, donut, treemap, or funnel) or adjust the axes, then save it. Put a few saved charts together, and you have a <a href="https://visualeaf.com/blog/mongodb-workspace-queries-schema-charts-teams/">dashboard</a> built on live Oracle data, so it never goes stale like a pasted screenshot.</p><p>To be clear about scope, this isn’t meant to replace a full enterprise BI platform. It’s for the gap between “I have the data” and “I need to show it”, which is where most of us lose time.</p><h3>7. When your stack isn’t only Oracle</h3><p>Very few teams run Oracle alone. There’s usually a PostgreSQL service somewhere, a MySQL database inherited from an acquisition, a MongoDB cluster the product team loves.</p><p>VisuaLeaf <a href="https://visualeaf.com/database/">connects to 37+ SQL and NoSQL engines</a> and keeps the same workflow across all of them, on <a href="https://visualeaf.com/blog/best-database-design-tools/">Windows, macOS, and Linux.</a> So the Oracle developer tools you learn here are the same ones you’ll use for the next database.</p><h3>Looking for a free Oracle SQL client? Start with Community Edition</h3><p>Yes, there’s a free version. <a href="https://visualeaf.com/features/">VisuaLeaf Community Edition</a> is free to use for as long as you want, with no account and no credit card, and it supports Oracle. It’s a good fit if you’re learning Oracle, running Oracle Database Free in Docker on your laptop, or you just need a clean Oracle SQL client for everyday queries.</p><p>When you want the visual side, like the query builder, schema diagrams, charts, and dashboards, there are paid editions. Every account gets a 14-day trial of the Professional edition with everything unlocked, so you can test it on your own schema before deciding.</p><p>Licensing is flexible: you can pay monthly or choose a longer license, depending on how you work. There are volume discounts for teams of five or more, and a startup discount for the first year. Full details are on the <a href="https://visualeaf.com/pricing">pricing page</a>.</p><h3>Try it on a schema you know well</h3><p>The fastest way to judge a tool is to point it at a database you already understand. Here’s a 15-minute test we’d suggest:</p><ol><li><a href="https://visualeaf.com/download">Download VisuaLeaf</a> and connect to Oracle with a service name or SID, directly or over SSH.</li><li>Generate the ER diagram for one schema and check whether it matches what’s in your head.</li><li>Take your slowest query and open it in Visual Explain.</li><li>Turn one result set you normally export into a chart.</li></ol><p>If by the end of the trial you notice you’ve stopped opening three other tools, the license has already paid for itself. And if something’s missing for your Oracle workflow, tell us on <a href="https://discord.gg/TR6J56Y3rF">Discord</a>. A lot of what’s in this article started as a user request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*GQQcSYlH5zHvWkcuoK_7lQ.png" /></figure><p>More about <a href="https://visualeaf.com/database/oracle/">VisuaLeaf as an Oracle GUI client</a>, or see <a href="https://visualeaf.com/pricing">pricing</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02ab4431a8ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Mask Sensitive Data in SQL: Make a Safe Database Copy]]></title>
            <link>https://javascript.plainenglish.io/how-to-mask-sensitive-data-in-sql-make-a-safe-database-copy-dfb16593b9ee?source=rss-57c6e0e240c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfb16593b9ee</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[VisuaLeaf]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 19:15:16 GMT</pubDate>
            <atom:updated>2026-11-04T19:15:16.329Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Er2JWSA8-8rQ3Lu-EZgs2w.png" /></figure><p>Data masking replaces sensitive values, such as names, emails, and card numbers, with masked versions. The result is a database copy you can share with developers or testers without exposing real people. In this tutorial, you’ll copy a MySQL database into a new one and mask its private columns on the way, using <a href="https://visualeaf.com/features/task-manager/"><strong>Data Transfer</strong></a> in <a href="https://visualeaf.com/">VisuaLeaf</a>.</p><h4>Before you start</h4><ul><li>VisuaLeaf is connected to a MySQL 8 server.</li><li>The sample database summer_camp. It has 7 linked tables: guardians, campers, counselors, camp_sessions, enrollments, payments and incident_reports.</li><li>One rule: <strong>never mask the original database.</strong> You always mask a copy.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Er6JG5HEX-4aGLJp.png" /></figure><h3>Step 1: Create the target database</h3><p>The masked copy needs a place to go:</p><pre>CREATE DATABASE summer_camp_dev<br>  CHARACTER SET utf8mb4<br>  COLLATE utf8mb4_0900_ai_ci;</pre><p>Or, without writing SQL, use the <strong>Create Database</strong> form: type summer_camp_dev as the name, keep utf8mb4 as the character set, and add a comment so everyone knows what this database is for. Then click <strong>Create Database</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/0*DKtYixUjUqrnFgwN.png" /></figure><h3>Step 2: Your first job: mask names and emails</h3><p>In <strong>Data Transfer</strong>, click <strong>New task</strong> and name it Mask summer_camp. Then click <strong>Add job</strong>. The job editor has three parts: Source, Target, and Mapping.</p><p>First, tell the job where the data comes from and where it goes:</p><ul><li><strong>Source:</strong> type Table, database summer_camp, table guardians</li><li><strong>Target:</strong> type Table, database summer_camp_dev, table guardians</li></ul><p>Leave When rows already exist on Add or update. If you run the job again, existing rows are updated instead of duplicated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jgGohsJt75zv2Dbc.png" /></figure><p>Scroll down to <strong>Data Transformation Rules</strong>. In <strong>Field mapping</strong>, every row is one column of the table. In the <strong>Value Script</strong> column, pick a mask from the list: <strong>Mask name</strong> for first_name and last_nameand <strong>Mask email</strong> for email.</p><p>For more options, like keeping the last characters or replacing a value with fixed text, use the <strong>Mask a field</strong> button above the table.</p><p>The <strong>Live preview</strong> on the right shows what the job will write for a real row: Emily becomes E****, and her email becomes e***********r@example.com.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1QJJZJwMV6eyYpno.png" /></figure><p>Click <strong>Save</strong>, then run the job with the play button next to it. When it finishes, the job shows a green check and the task shows <strong>Completed</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cZAUNhHrhXMrn_iZ.png" /></figure><h3>See the difference</h3><p>In the Connections panel, double-click guardians under summer_camp_dev. The table opens with a ready-made SELECT * FROM guardians query and the data below it. Names and emails are masked. Phone, address, and city are still real, because we haven&#39;t masked them yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lIP55e1c46BH_Py0.png" /></figure><p>To compare, open guardians from summer_camp as well and put the two tabs side by side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MS2Vy6yCV0jrg-wc.png" /></figure><h3>Step 3: A second job: mask a different kind of data</h3><p>Add another job for campers (source summer_camp.campers, target summer_camp_dev.campers). Mask first_name and last_name as <strong>Name</strong>, and allergies as <strong>Replace with text</strong>, for example Sample note. Run it.</p><p>We did guardians first on purpose: every camper points to a guardian, so the guardians must already exist in the copy. More on that <a href="#step-5-set-the-run-order-and-run">in Step 5.</a></p><p>Since both tables are now insummer_camp_dev, you can check them together. Type this in the query box of the open table and click Run:</p><pre>SELECT c.first_name, c.last_name, c.allergies, g.email<br>FROM campers c<br>JOIN guardians g ON g.guardian_id = c.guardian_id<br>WHERE c.camper_id = 1;</pre><p>The values are masked, but the JOIN still returns a row. The links between tables survived because we didn’t touch the IDs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f6-FHzIE44Zc86mp.png" /></figure><h3>Step 4: Add jobs for the other tables</h3><p>Repeat for the remaining 5 tables. Don’t run anything yet: first you add the masks to the jobs, so the data is masked while it’s copied, in a single pass.</p><p>The full list of masks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*DoCpFQExNluS13I0mSd9Bw.png" /></figure><p>camp_sessions and enrollments hold nothing private, so they&#39;re copied as they are. Don&#39;t mask the ID columns (camper_id, guardian_id...): they link the tables together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aS_NQO2wsjCzyLFZ.png" /></figure><h3>Step 5: Set the run order and run</h3><p>A child table can only be copied after its parent table exists in the target. Every camper points to a guardian, so guardians is the parent of campers.</p><p>Set this with the <strong>Parents</strong> column on each job. The easiest way is the Visual view: click a job card, and in Job Details, under Parent dependencies, tick the jobs that must finish first. You can also drag from the right edge of one card onto another. Arrange the cards in this order:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TfGE9uy8FUtYjbHE.png" /></figure><p>Then click <strong>Run All</strong> and check that every job shows Completed in <strong>Monitor</strong> or <strong>History</strong>.</p><h3>Step 6: Check for leaks</h3><p>Open the masked tables again, like in Step 2. Then check free-text columns, which often hide names you masked elsewhere:</p><pre>SELECT COUNT(*) FROM summer_camp_dev.incident_reports<br>WHERE description LIKE &#39;%Carter%&#39;;</pre><p>The result should be <strong>0</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XcxcdsM-p0ppGX2L.png" /></figure><h3>Bonus: Schedule the task</h3><p>The task’s <strong>Schedule</strong> is set to Manual by default. Click the pencil next to it, pick Weekly, choose Every Monday at 9 AM, and click Save Schedule, and VisuaLeaf refreshes summer_camp_dev with freshly masked data on its own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CCyVhljx6kM-sQVI.png" /></figure><p>Because the jobs use <strong>Add or Update</strong>, each scheduled run updates the existing rows instead of adding duplicates.</p><h3>Export the masked data</h3><p>Sometimes a developer needs a file, not a database connection. Since summer_camp_dev is already masked, you can export it safely with a new Data Transfer job.</p><p><strong>One table.</strong> Set the source to <strong>Table</strong>, for example summer_camp_dev.guardians. Then choose a file as the target: <strong>CSV</strong>, <strong>JSON</strong>, <strong>XML,</strong> or <strong>Excel</strong>.</p><p><strong>The entire database.</strong> Set <strong>Source Type</strong> to <strong>Database</strong> and <strong>Database Name</strong> to summer_camp_dev. Then pick a <strong>Target Type</strong>:</p><ul><li><strong>SQL dump (tables and data):</strong> one .sql file that rebuilds the whole masked database. This is the easiest thing to send to someone.</li><li><strong>CSV</strong>, <strong>JSON</strong>, <strong>XML,</strong> or <strong>Excel workbooks:</strong> one file per table.</li><li><strong>Database</strong> or a MongoDB <strong>Collection:</strong> copy the masked data to another server.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GJv6QzKyfZX6xoLR.png" /></figure><h3>Things to watch out for</h3><ul><li><strong>Unique columns.</strong> Two masked emails can end up identical and break a UNIQUE constraint. Use a consistent<strong> ID (hash)</strong> when a column must stay unique.</li><li><strong>Required columns.</strong> <em>Don’t write this field</em> as NULL (see <em>If Missing</em>), so it fails on NOT NULL columns.</li><li><strong>Empty values.</strong> Check in the Live preview whether <em>Replace with text</em> also fills NULL rows.</li></ul><h3>Wrapping up</h3><p>You now have summer_camp_dev: a full copy of the database with the same tables, the same links and realistic data, but no real names, emails, card numbers or health notes. The original was never touched, and everything was masked in a single pass while the data was copied.</p><p>The same steps work for any database: find the columns you’d never want leaked, pick a mask for each, keep the IDs, set the parents, and check the Live preview before you run. Once the task is saved, you can rerun it, schedule it, or export the result whenever someone needs safe data.</p><p><strong>Ready to try it on your own database?</strong> <a href="https://visualeaf.com/">Download VisuaLeaf</a> for Windows, macOS, or Linux, and create your first masking task in a few minutes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfb16593b9ee" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/how-to-mask-sensitive-data-in-sql-make-a-safe-database-copy-dfb16593b9ee">How to Mask Sensitive Data in SQL: Make a Safe Database Copy</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Database Design Tools for 2027: Windows, macOS & Linux]]></title>
            <link>https://javascript.plainenglish.io/best-database-design-tools-for-2027-windows-macos-linux-7d34759e5f64?source=rss-57c6e0e240c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d34759e5f64</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[database-design]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[VisuaLeaf]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 12:06:06 GMT</pubDate>
            <atom:updated>2026-10-26T13:06:49.256Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S01hUdhGYESo9vTWmimysg.png" /></figure><p>Most database trouble starts with a schema nobody ever drew. A handful of tables turn into fifty, someone adds a foreign key late on a Friday, and a few months later nobody can explain how orders connect to customers without reading raw DDL.</p><p>A visual design tool fixes that. You see the tables, you see the relationships, and you can show them to a teammate who wasn’t in the room. The catch is that “database tool” covers a lot of ground. Some let you design a schema before the database exists. Others are SQL clients that draw a diagram once you connect to a live server.</p><p>This article compares eight popular tools, focusing on schema design and documentation. For each one, you get what it does well, where it falls short, how many databases it connects to, what it costs, and how painful the free trial is to start.</p><p><strong>Short on time?</strong> Jump to the <a href="#strengths-and-weaknesses">strengths and weaknesses overview</a> at the end for a quick side-by-side of all eight tools.</p><h3>What I looked at</h3><ul><li>Can you design a schema visually, or only view one that already exists?</li><li>Can it reverse engineer a live database into a diagram?</li><li>Can it generate SQL from the diagram (forward engineering)?</li><li>Does it help with schema comparison, documentation export, or team workflows?</li><li>How many databases can it connect to?</li><li>What is free, what is paid, and how easy is it to start a trial?</li></ul><h3>The eight tools side by side</h3><pre>| Tool | Built around | Runs on | Databases | Price | Free trial |<br>|---|---|---|---:|---|---|<br>| VisuaLeaf | One GUI for MongoDB and SQL | Windows, macOS, Linux | 37+ | Free Community Edition. Basic from $10/month or $79. Professional from $16/month or $149 | 14 days, email only; can be extended |<br>| DataGrip | SQL editing | Windows, macOS, Linux | 50+ | Free for non-commercial use. From $10.90/month or $109/year. Organizations from $259/user/year | 30 days, starts straight away |<br>| DbSchema | An offline model file | Windows, macOS, Linux | 100+ | Free Community. Pro from $196 personal / $294 business. Architect from $313.60 personal / $470.40 business | 15 days of Architect, one click; can be extended |<br>| DBeaver| Live database work | Windows, macOS, Linux | 100+ | Free Community. Lite $113/year, Enterprise $255/year, Ultimate $510/year | 14 days; request and import a licence key |<br>| Navicat | Live database work | Windows, macOS, Linux | 9 | Free Premium Lite. Premium perpetual licence from 75$/month or $1,499 perpetual; subscriptions also offered | 14 days, starts automatically |<br>| DbVisualizer | Live database work | Windows, macOS, Linux | 40+ plus JDBC | Free edition. Pro $199 the first year, then $89/year | 21 days, no account or card needed |<br>| TablePlus | A fast native client | macOS, Windows, Linux | 22 | Free edition with limits. Basic $99 one-time, Standard $129 one-time | Free forever, no signup needed |<br>| Beekeeper Studio | A clean SQL client | Windows, macOS, Linux | 24 | Free Community. Paid from $18/month or $168 billed yearly | 14 days, no email or card |</pre><blockquote>Prices are USD list prices before tax, checked in October 2026. Where a vendor splits business and personal plans, the business price is shown. Plans change often, so confirm on each vendor’s site before you buy.</blockquote><h3>How I Tested the 8 GUIs</h3><p>All screenshots come from the same <a href="https://www.mysql.com/">MySQL database</a>, so the diagrams are comparable. For this comparison, I connected every tool to the same MySQL 8.4.11 database: super_bowl_ticketing, with 19 tables and 21 foreign-key relationships.</p><h3><a href="https://visualeaf.com/">1. VisuaLeaf</a></h3><ul><li><strong>Platform:</strong> Windows, macOS, Linux</li><li><strong>Databases:</strong> MySQL, MongoDB, PostgreSQL, and 34 more</li><li><strong>Price:</strong> free Community Edition. Basic from $10/month or $79 one-time; Professional $149 one-time (each includes 1 year of updates)</li><li><strong>Free trial:</strong> 14 days of Pro features. Add your email in the app or on the dashboard and the trial starts, with the option to extend it</li></ul><p>VisuaLeaf treats MongoDB and relational databases as equals, which is still rare. For schema work, you can create a diagram from scratch or reverse engineer an existing database into one, then stay in the same app for the rest of the job.</p><p><strong>Key features</strong></p><ul><li><strong>Schema diagrams:</strong> create one from scratch or reverse engineer an existing database. ER diagrams for SQL databases are in the free Community Edition</li><li><strong>SQL editor:</strong> with inline editing and a visual query builder</li><li><strong>Index manager:</strong> create, change, and drop indexes</li><li><strong>Query profiler:</strong> find and diagnose slow queries (from Basic)</li><li><strong>Data compare and sync:</strong> across MongoDB and SQL databases (Professional)</li><li><strong>Data masking:</strong> hide sensitive fields in exports (from Basic)</li><li><strong>Task automation:</strong> import, export, and migration tasks, including scheduled transfers</li><li><strong>Charts and dashboards:</strong> built from your queries (Professional)</li><li><strong>AI Assistant</strong> in the Basic plan or MCP in the Pro one.</li><li><strong>Database Documentation:</strong> interactive HTML5, PDF, JSON, DDL (Pro)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DsLubXzv_8mNx22HPnlofA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o3r1FXFi2_Rs_TdDpO5cPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mxGFQKqaIpkgXf3ihbclSw.png" /></figure><p><strong>What I like</strong></p><ul><li>One app for MongoDB and 36 other databases, which helps if your stack mixes both</li><li>Diagrams you can create and reverse engineer, free for SQL databases</li><li>Compare, sync, and masking sit next to the diagram, so you don’t need a second tool</li><li>JSON fields can be expanded inside the diagram, which makes mixed relational and nested data easier to understand</li></ul><p><strong>Disadvantages</strong></p><ul><li>It’s a newer product, so tutorials and community answers are thinner than for DBeaver or DataGrip</li><li>The heavier features, such as data compare and sync or dashboards, need the Professional plan</li></ul><h3><a href="https://www.jetbrains.com/datagrip/">2. DataGrip</a></h3><ul><li><strong>Platform:</strong> Windows, macOS, Linux</li><li><strong>Databases:</strong> MySQL, MongoDB, PostgreSQL, and dozens more (JetBrains doesn’t publish an exact number)</li><li><strong>Price:</strong> from $10.90/month or $109/year for individuals, $259/user/year for organizations. Free for non-commercial use</li><li><strong>Free trial:</strong> 30 days, starts directly in the app</li></ul><p>DataGrip is JetBrains’ database IDE, and it’s the pick if you spend your day writing and refactoring SQL. The free license covers learning, hobby projects, open-source work, and content creation.</p><p><strong>Key features</strong></p><ul><li><strong>ER diagrams:</strong> generated automatically, showing tables, relationships, and foreign keys for a connected database</li><li><strong>Query console:</strong> run queries in different modes, with local history so you don’t lose work</li><li><strong>Code completion:</strong> aware of table structure, foreign keys, and the objects in the code you’re editing</li><li><strong>On-the-fly analysis:</strong> flags probable bugs and suggests quick fixes</li><li><strong>Import and export:</strong> CSV, JSON, HTML, Markdown, Excel, and more</li><li><strong>Version control integration</strong> and query history</li><li><strong>AI assistance:</strong> schema-aware help with queries, errors, and SQL dialect conversion</li><li><strong>Cloud discovery:</strong> finds databases in your AWS, Google Cloud, or Azure account</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q04uACL7dFU2CBC14ZJohw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lSsDhaij8BJpJQ_1rH_lPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dMN4IwFXGL3IOJQ7XysGaw.png" /></figure><p><strong>What I like</strong></p><ul><li>Smart completion, refactoring, and inspections for SQL</li><li>ER diagrams without leaving the IDE</li><li>The free non-commercial license is a real option for students and side projects</li></ul><p><strong>Disadvantages</strong></p><ul><li>Commercial work needs a paid subscription</li><li>It’s built for working with existing databases, not for designing new ones from a blank page</li></ul><h3><a href="https://dbschema.com/">3. DbSchema</a></h3><ul><li><strong>Platform:</strong> Windows, macOS, Linux</li><li><strong>Databases:</strong> MySQL, MongoDB, PostgreSQL, and 70+ more</li><li><strong>Price:</strong> free Community Edition. Pro $294 one-time ($196 for personal use), Architect $470.40 one-time. Both include the first year of updates, then $75/year (Pro) or $120/year (Architect) to keep getting new versions. Monthly plans are also available</li><li><strong>Free trial:</strong> 15 days of the Architect edition, one click, no card.</li></ul><p>DbSchema is a good design-first tool from the group. The diagram is the model, and you can save it to a file and work on it without a database connection. Community is free forever and covers connecting, reverse engineering, interactive diagrams, creating tables and columns, and a SQL editor. Pro and Architect add the design workflow on top.</p><p><strong>Key features</strong></p><ul><li><strong>Interactive diagrams:</strong> reverse engineer a live database, or create and edit tables and columns visually. Free in Community</li><li><strong>SQL editor:</strong> with autocompletion, free in Community</li><li><strong>Offline model file:</strong> save the design to a file and work without a connection (Pro). The file works well with Git</li><li><strong>Schema synchronization:</strong> compare, diff, and generate migration scripts (Pro)</li><li><strong>Documentation:</strong> interactive HTML5, PDF, and Markdown (Pro)</li><li><strong>Visual query builder and relational data browse</strong> (Pro)</li><li><strong>Data generator and importer:</strong> fill tables with test data, load CSV, XML, and XLS files (Pro)</li><li><strong>Logical and conceptual design:</strong> database-independent models that you can migrate to a physical schema later (Architect)</li><li><strong>AI assistant:</strong> a separate $9/month add-on for any edition, or your own key in Architect</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*15j8XjtlfonCh_yftj4GaQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qKQL3eiFblRVeW2pn1XWoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KrkQpqYr7liMd9E4YpPIww.png" /></figure><p><strong>What I like</strong></p><ul><li>You can model before the database exists, which most tools here can’t do</li><li>Diagrams, reverse engineering, and the SQL editor are free for every supported database</li><li>Git-friendly model file and generated documentation make it good for teams</li></ul><p><strong>Disavantages</strong></p><ul><li>Saving the model, documentation, and schema sync need a paid edition. When the trial ends, Community can’t open the project files you saved</li><li>Steeper learning curve: its model-first workflow and many features can feel less straightforward for beginners than a simpler live database client.</li></ul><h3><a href="https://dbeaver.com/">5. DBeaver</a></h3><ul><li><strong>Platform:</strong> Windows, macOS, Linux</li><li><strong>Databases:</strong> MySQL, MongoDB (paid editions), PostgreSQL, and 100+ more</li><li><strong>Price:</strong> free Community Edition. Lite $113/year ($12/month), Enterprise $255/year ($26/month), Ultimate $510/year</li><li><strong>Free trial:</strong> 15 days. Create an account, then import the license key into the app (the most involved sign-up of the eight)</li></ul><p>DBeaver is the free all-rounder. The Community edition is open source and works with 100+ databases, and the paid editions add schema editing, comparison tools, and NoSQL support. It’s a general database tool first and a design tool second.</p><p><strong>Key features</strong></p><ul><li><strong>ER diagrams:</strong> for a whole schema or a single table, in every edition. Editing the schema from the diagram (ERD edit mode) starts at Enterprise</li><li><strong>SQL editor and data editor:</strong> with query history and inline editing</li><li><strong>Visual query builder:</strong> build queries by clicking tables and columns (paid editions)</li><li><strong>Import, export, and charts:</strong> move data between databases and files, and draw analytical charts</li><li><strong>Schema comparison and table data comparison:</strong> (Enterprise)</li><li><strong>Mock data generation:</strong> fill tables with test data (Enterprise)</li><li><strong>Git sync and task scheduler:</strong> (Enterprise)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*llHtsguoPxUuWpEjGUvulA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cojVPDMx6O1UoONjYB640A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YT-r4Hxi2p6a-06zr4mPLA.png" /></figure><p><strong>What I like</strong></p><ul><li>A genuinely useful free edition, ER diagrams included</li><li>Huge database coverage and a solid SQL editor</li><li>Easy to browse and edit real data</li></ul><p><strong>Disadvantages</strong></p><ul><li>Diagrams exist to explore a database, and editing the schema from them is an Enterprise feature</li><li>Starting the trial is the most involved of the eight: account, email, then a license key to import</li></ul><h3><a href="https://www.navicat.com/en/products/navicat-premium">5. Navicat</a></h3><p>Navicat is the polished, long-established name in this group. It is a live-connection tool first, but the Enterprise edition adds a proper modelling workspace. Instead of only generating a diagram from an existing database, you can start with a conceptual, logical, physical, or hybrid design and take it forward to MySQL.</p><p><strong>Key features</strong></p><ul><li><strong>Model-first design (Enterprise):</strong> start with a conceptual, logical, physical, or hybrid model. For physical models, choose the target database and version before adding tables.</li><li><strong>Naming standards and documentation:</strong> create naming rules, a shared glossary, and a data dictionary alongside the model.</li><li><strong>Forward and reverse engineering (Enterprise):</strong> reverse-engineer a live database or SQL file into a model, then generate SQL or synchronize the finished model back to a database.</li><li><strong>Live ER diagram:</strong> Standard and Enterprise can also generate a quick diagram from an existing schema. It supports MySQL, Oracle, PostgreSQL, SQLite, SQL Server, and MariaDB.</li><li><strong>Structure and data synchronization:</strong> compare two databases and generate the scripts needed to bring them back in sync.</li><li><strong>Navicat Collaboration:</strong> share connections, queries, snippets</li><li><strong>Import, export, backup, and SSH tunneling:</strong> covers the everyday work around a live database connection.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ChmPEkHNtnqbWESwB6t94w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cv_5DegKtj0GfwLpW3nPTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oc2BzXOULqOMuNx1CGMuqA.png" /></figure><p><strong>What I like</strong></p><ul><li>A mature, polished interface with a long track record</li><li>Sync and collaboration tools are strong for teams working across several databases</li><li>The Premium Lite edition is free for commercial use, up to 5 users per organization</li></ul><p><strong>Disadvantages</strong></p><ul><li>It has the highest price on the list, and the free Premium Lite has no ER diagram view</li><li>The full modelling workspace may feel like overkill if you only need a quick, simple schema diagram.</li></ul><h3><a href="https://dbvis.com/">6. DbVisualizer</a></h3><ul><li><strong>Platform:</strong> Windows, macOS, Linux</li><li><strong>Databases:</strong> MySQL, PostgreSQL, and 60+ others via JDBC</li><li><strong>Price:</strong> Free edition. Pro is $199 for the first year, then $89/year. Premium Support is $229 for the first year, then $119/year. A paid term includes a perpetual license for versions released during that period.</li><li><strong>Free trial:</strong> 21 days of Pro. Create an account, then start the trial from the app.</li></ul><p>DbVisualizer is a mature JDBC database client built for databases that already exist. It is good for exploring a live schema, writing SQL, browsing data, and following relationships, but it is not really a design-from-scratch tool. The Free edition covers the essentials, while Pro adds data editing, visual querying, and analysis tools.</p><p><strong>Key features</strong></p><ul><li><strong>References graph (Free):</strong> automatically maps primary and foreign keys, offers several layouts, and exports to PNG, SVG, or PDF.</li><li><strong>SQL editor and query history (Free):</strong> write queries, revisit previous work, and reuse it when needed.</li><li><strong>Connection management and SSH tunnelling (Free):</strong> manage multiple databases and connect securely to remote servers.</li><li><strong>Table and data editor (Pro):</strong> edit table structures and data directly in the app.</li><li><strong>Import and export tools (Pro):</strong> move data between files and databases.</li><li><strong>Visual Query Builder (Pro):</strong> build SELECT queries visually instead of writing every join and filter by hand.</li><li><strong>Explain plan and charts (Pro):</strong> inspect query performance and turn result sets into charts.</li><li><strong>CLI and AI Assistant (Pro):</strong> run DbVisualizer from the command line or use its built-in AI help.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UbFgf_H-UBNYaOtkry_wFQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*41jCBLi970bcIWZ6HbBuVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BJ3y_xd9rGhpJsd5XH7d6w.png" /></figure><p><strong>What I like</strong></p><ul><li>The references graph is included in the free edition</li><li>Works with any JDBC database, with extra support for the common ones</li><li>Pro is cheap to renew, and your license is perpetual for the versions released during your term</li></ul><p><strong>Disavantages</strong></p><ul><li>The graph is built from existing foreign keys, so it is a viewer, not a modeling tool. There is no offline model file or design-first workflow</li><li>Table management, the data editor, and the query builder are all Pro. The trial needs an account before you can start it</li></ul><h3><a href="https://tableplus.com/">7. TablePlus</a></h3><ul><li><strong>Platform:</strong> macOS, Windows, Linux (plus iOS)</li><li><strong>Databases:</strong> MySQL, PostgreSQL, SQLite, SQL Server, MariaDB, Redis, MongoDB, and more (13 in total)</li><li><strong>Price:</strong> free tier with limits. Basic $99 one-time (1 device), Standard $129 one-time (2 devices), Team $79 per seat from 3 seats. Each includes 1 year of updates, then an optional $59/device renewal</li><li><strong>Free trial:</strong> 14 days, no sign-up needed</li></ul><p>TablePlus is the fast, native client of the group. It is built for people who spend their day in the data grid and want a quick, clean interface with a one-time price. It focuses on everyday database work rather than design, so schema diagrams are an add-on, not a core feature.</p><p><strong>Key features</strong></p><ul><li><strong>Native interface:</strong> fast to open and responsive on large tables</li><li><strong>Data editor:</strong> edit rows inline and review changes before you commit them</li><li><strong>Advanced filters and query editor:</strong> with autocompletion</li><li><strong>Safe mode:</strong> helps prevent accidental changes on production databases</li><li><strong>Built-in ER diagram:</strong> generate a diagram directly from a live database or schema, then move tables around, zoom in, search for objects, and edit tables, columns, indexes, or foreign keys from the diagram.</li><li><strong>Plugin manager:</strong> install extra tools such as a SQL formatter or table dump</li><li><strong>iOS app:</strong> included for free with a valid license</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4h2MvYqfJ917zcPEnhTFhA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tqPk8NBFgWQaLqmHJitx8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lifbZBBnOH4WpWKvveSWPA.png" /></figure><p><strong>What I like</strong></p><ul><li>Fast, native, and pleasant to use every day</li><li>A one-time price, and the app keeps working after the first year of updates</li><li>Opens the free tier without any sign-up</li></ul><p><strong>Disavantages</strong></p><ul><li>The free tier is limited to 2 tabs, 2 windows, and 2 advanced filters at a time</li><li>Supports fewer databases than other tools</li></ul><h3><a href="https://www.beekeeperstudio.io/">8. Beekeeper Studio</a></h3><ul><li><strong>Platform:</strong> Windows, macOS, Linux</li><li><strong>Databases:</strong> MySQL, PostgreSQL, SQLite, SQL Server, and 22 more (26 in total). Some engines are paid-only: Oracle from Indie, MongoDB from Professional</li><li><strong>Price:</strong> free Community Edition (open source). Indie $9/month, Professional $14/month, Business $18/month, all billed yearly. Monthly billing costs about double. Every paid plan includes a lifetime license for the versions released during your subscription</li><li><strong>Free trial:</strong> 14 days of all paid features. Install the app, click “start free trial,” and you’re in, no email, account, or card needed.</li></ul><p>Beekeeper Studio is a clean SQL client with an open-source Community edition. The ER diagram (called the Visual Schema Explorer) is built in, but it’s a paid feature: it isn’t included in the Community edition, and the trial unlocks it.</p><p><strong>Key features</strong></p><ul><li><strong>ER diagrams (paid):</strong> turn a live database schema into a visual map of its tables and foreign-key links. You can move tables around, use auto-layout when it gets messy, then export or copy the result.</li><li><strong>Table structure editor:</strong> create or change tables, relations, triggers, and indexes without writing every statement by hand.</li><li><strong>SQL editor and data grid:</strong> write SQL with autocomplete, then browse and edit rows in a clean spreadsheet-style view.</li><li><strong>Import, export, backup, and restore (paid):</strong> useful for moving data around and keeping database backups close.</li><li><strong>JSON Sidebar (paid):</strong> opens a selected row as formatted JSON, which is much easier to read than a long JSON value in one cell.</li><li><strong>AI Shell and Cloud Workspaces (Professional+):</strong> use your own AI provider to explore the schema and help write SQL, or sync connections and saved queries across devices and with a team.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*norKh3vGTuObuz_iqETHww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xWng-Bp8b-ExtJCb_uPz5g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qCgW0eijVHYSsQbTjuzO6Q.png" /></figure><p><strong>What I liked:</strong> Beekeeper Studio is one of the easiest tools here to pick up. The interface is clean, browsing and editing data feels quick, and the SQL editor does not bury basic work behind lots of menus.</p><p><strong>Disadvantages:</strong> The limitation comes after the trial: the free Community Edition does not include ER diagrams, import/export, or the JSON Sidebar. The ER diagram is also mainly built for following relationships; the full-database view keeps only primary and foreign keys visible, while a focused selection shows more detail.</p><h3>So which one should you pick?</h3><p>There’s no single winner, because these tools are built around different jobs. Start with whether you’re designing a schema from scratch or exploring one that already exists.</p><ul><li><strong>You work with more than one kind of database:</strong> <a href="https://visualeaf.com/database/">VisuaLeaf</a>. It has ER diagrams you can create and reverse engineer, free for SQL databases. The same app also works with MongoDB, DuckDB, ClickHouse, and more (37 in total). It’s the newest tool here, so expect fewer community answers.</li><li><strong>You want to design a schema before the database exists:</strong> DbSchema. Diagrams are free, but saving the model file and generating docs need Pro.</li><li><strong>You want free ER diagrams:</strong> DBeaver Community, or the DbVisualizer free edition. Editing the schema from the diagram is paid in DBeaver.</li><li><strong>You write SQL all day:</strong> DataGrip, which is free for non-commercial use.</li><li><strong>You want a fast native app with a one-time price:</strong> TablePlus, if you’re fine with a diagram plugin and the free tier limits.</li><li><strong>You want the cleanest interface and an open-source core:</strong> Beekeeper Studio. Its ER diagram is in the paid editions, and the trial is the easiest to start.</li><li><strong>You manage several databases as a team and have the budget:</strong> Navicat. It’s the most expensive option here, and the diagram view isn’t in the free Lite edition.</li></ul><p>All eight have a free edition or a trial, so the quickest way to decide is to point two or three of them at the same database and see which diagram your team can read.</p><h3><a href="#strengths-and-weaknesses">Strengths and weaknesses</a></h3><pre>| Tool | Visual ER diagrams | Biggest strength | Biggest weakness |<br>| --- | --- | --- | --- |<br>| **VisuaLeaf** | Create from scratch or reverse-engineer an existing SQL database; free for SQL databases | MongoDB plus 36 other databases in one app, with compare, sync, and data masking | Newer product, with a smaller community than DBeaver or DataGrip |<br>| **DataGrip** | Generated from a connected database | The strongest SQL editor and refactoring help in this group | Paid for commercial use and aimed at databases that already exist |<br>| **DbSchema** | Design-first, offline model file | Model before a database exists, with Git support and interactive HTML documentation | Its model-first workflow can feel heavier than a simple live database client |<br>| **DBeaver** | Generated from a connection in every edition; diagram editing is Enterprise-only | A capable free Community edition with 100+ drivers | Visual schema editing is paid, and starting the trial is more involved than the others |<br>| **Navicat** | Live ER diagrams in Premium; full data modelling in Enterprise | Polished sync, collaboration, and modelling tools | The most expensive option here, while Premium Lite has no diagrams |<br>| **DbVisualizer** | References graph, including in the free edition | Export a clear relationship graph as PNG, SVG, or PDF | It reads existing foreign keys; it is not a design-from-scratch tool |<br>| **TablePlus** | Built-in ER diagram in paid editions, generated from a live database or schema | Fast native client with a one-time license option | The free tier limits workspaces and locks several advanced features |<br>| **Beekeeper Studio** | Auto-generated in paid editions and during the trial; the main view focuses on keys and relationships | One of the cleanest, easiest interfaces, with an open-source Community edition | Community does not include ER diagrams, import/export, or the JSON Sidebar |</pre><h3>Frequently asked questions</h3><h4>Which database design tool is best?</h4><p>It depends on the job: VisuaLeaf or DBeaver for broader everyday database work; DbSchema is strong for planning; and DataGrip for SQL.</p><h4>Are there free ER diagram tools?</h4><p>Yes. DBeaver Community, DbVisualizer Free, DbSchema Community, and VisuaLeaf for SQL databases all include diagram features.</p><h4>Can I generate an ER diagram from an existing MySQL database?</h4><p>Yes. Connect the database and reverse engineer its tables, primary keys, and foreign keys into a diagram.</p><h4>Can I design a schema before creating the database?</h4><p>Yes. VisuaLeaf and DbSchema let you plan the structure first, then generate the SQL later.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d34759e5f64" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/best-database-design-tools-for-2027-windows-macos-linux-7d34759e5f64">Best Database Design Tools for 2027: Windows, macOS &amp; Linux</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ER Diagram vs Database Schema: What’s the Difference?]]></title>
            <link>https://javascript.plainenglish.io/er-diagram-vs-database-schema-whats-the-difference-22accf56a162?source=rss-57c6e0e240c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/22accf56a162</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[database-design]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[VisuaLeaf]]></dc:creator>
            <pubDate>Wed, 21 Oct 2026 13:12:22 GMT</pubDate>
            <atom:updated>2026-10-21T13:12:22.930Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ji7XlnTxc2fA_45ez5W4Hw.png" /></figure><p>An <a href="https://visualeaf.com/features/visual-schema/">ER diagram</a> and a <a href="https://visualeaf.com/blog/what-is-a-sql-database-schema-and-how-do-you-design-one/">database schema</a> can look like the same thing at first. They are related, but they are used at different moments: first, you plan how the data should connect; then you create the real tables, columns, keys, and rules in the database.</p><p>Think of a clinic named HyperClinic. This clinic needs to store patients, doctors, specializations, and appointments.</p><p>A quick way to do this is to store everything in one table, called appointments:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k9kbjTEJr-yrZDCoL-l6ZQ.png" /></figure><p>This approach works for one row, but it causes problems when you add another appointment for Marit, change Dr. Wilson’s specialization, or have two patients with the same name.</p><p>The patient information is repeated. The doctor information is repeated. A typo can lead to inconsistency. And nothing prevents creating an appointment for a doctor who does not exist.</p><p>To avoid these problems, the team needs to plan the database before creating tables.</p><h3>ER Diagram vs Database Schema</h3><p>The key point of differentiation is not the shape of the boxes and arrows. It is the stage of development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X3LPHrJbEf-ZPwQ3PZpR0A.png" /></figure><p>A <strong>schema diagram</strong> is a graphic representation of the database schema. Such diagrams are also referred to as <a href="https://www.geeksforgeeks.org/dbms/introduction-of-er-model/">physical ER diagrams.</a></p><p><a href="https://www.geeksforgeeks.org/dbms/database-schemas/">A <strong>database schema</strong></a> is the actual structure stored in PostgreSQL and comprises objects such as tables, columns, primary and foreign keys, constraints, and indexes.</p><p>Thus, this is not a binary choice. A database design is typically developed from an ER diagram through the logical data model to the database schema.</p><p>In this article, we will build HyperClinic in the same order: Step 1 is the conceptual ER diagram, Steps 2 to 4 build the logical model, and Step 5 creates the physical PostgreSQL schema.</p><h3>Start with the Requirements</h3><p>Nobody will start writing CREATE TABLE before the team figures out the task.</p><p>In our case, HyperClinic must be able to:</p><ul><li>save patient information</li><li>save doctors and their specializations</li><li>create appointments</li><li>show which patient sees which doctor</li><li>ensure appointments refer to existing patients and doctors</li></ul><p>The job names depend on the company. Requirements may be gathered by a business analyst and designed by a database architect, data modeler, backend developer, or DBA. In a small company, one person may do several of these jobs.</p><p>What is important is the workflow, not the name.</p><p>The team should ask itself such questions as:</p><ul><li>Is it possible for one patient to have several appointments?</li><li>Is it possible for one doctor to have many patients?</li><li>Do all doctors have only one specialization?</li><li>Is it possible to create an appointment without a doctor?</li><li>Is it possible to create two appointments with the same doctor for the same time?</li></ul><p>These are the business rules that PostgreSQL won’t be able to guess.</p><h3>Step 1: Create the Conceptual ER Diagram</h3><p>Before deciding on columns, data types, or SQL, first identify what HyperClinic needs to store:</p><ul><li>Patient</li><li>Doctor</li><li>Appointment</li><li>Specialization</li></ul><p>An <strong>entity</strong> is simply something the system needs to store.</p><p>This is a <strong>conceptual ER diagram</strong>. It helps the team see the big picture without getting into implementation details. The boxes show the entities. The lines show their relationships. There are no columns, primary keys, foreign keys, or PostgreSQL data types yet.</p><p>The relationships are:</p><ul><li>A patient has many appointments.</li><li>A doctor has many appointments.</li><li>An appointment is made by one patient and one doctor.</li><li>A specialization has many doctors.</li><li>Each doctor has one specialization.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MoNzTcNQqViPYSImmXed0A.png" /></figure><h3>Step 2: Add Attributes and Primary Keys</h3><p>This is the point where the model becomes <strong>logical</strong>.</p><p>The conceptual diagram tells us that HyperClinic has patients, doctors, appointments, and specializations. The logical model answers the next question: <strong>what information belongs to each one?</strong></p><p>You now add attributes, choose identifiers, and organize the data so the same fact is not stored in several places. You are still designing the structure. You are not choosing PostgreSQL types such as VARCHAR(100) or TIMESTAMP yet.</p><p>Think of it like planning a house:</p><ul><li>the conceptual diagram says the house needs a kitchen, bedrooms, and a bathroom;</li><li>the logical model decides what belongs in each room;</li><li>the physical schema gives the builder the exact materials and measurements.</li></ul><p>The logical model takes three steps: attributes and primary keys (this step), normalization (Step 3), and foreign keys (Step 4).</p><p>Start with the attributes. For each entity, write down what the system needs to know about it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*KCfPYD7NH2q4iOWO7V6ekQ.png" /></figure><p>Then give every entity a <strong>primary key</strong>. A primary key is a column, or a set of columns, that uniquely identifies a row.</p><p>For instance, patient_id = 1 must identify only one patient. A name cannot be used as a primary key, as patients can have the same name and names change over time.</p><p>The same holds for doctors, specializations, and appointments: doctor_id, specialization_id, and appointment_id.</p><h3>Step 3: Normalize the Logical Model</h3><p>Normalization means organizing data so each fact is stored in the right place, instead of being repeated in several places.</p><p>You do not finish the ER diagram and normalize it later as a separate task. Usually, you draw the entities, test the structure, notice repeated data, and improve the model.</p><p>The examples below start from a flat table. The services are only for illustration: the final HyperClinic model does not include them.</p><h3>First Normal Form: One Value per Field</h3><p>First normal form, or <strong>1NF</strong>, means that one field should contain one value, not a list.</p><p>× <strong>Not in 1NF:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AC5q4CTmPeSRK_suFuQg5A.png" /></figure><p>The services field contains two values. This makes the data harder to filter, validate, or update.</p><p>✓ <strong>In 1NF:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NNCaPIpXBN2MphdxSb4YBg.png" /></figure><p>Each row now contains one service. However, the appointment, patient, and doctor information is repeated. The next step fixes that.</p><h3>Second Normal Form: Each Field Depends on the Whole Key</h3><p>Second normal form, or <strong>2NF</strong>, applies when a table uses a combined key.</p><p>Here, one appointment can have more than one service. The combination of appointment_id and service identifies one row.</p><p>× <strong>Not in 2NF:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WXg7z_shw9AFp9v4KU2z3A.png" /></figure><p>The patient_name, doctor_name, and appointment_at values depend only on appointment_id. They do not depend on the full combination of appointment_id and service, so they are repeated.</p><p>✓ <strong>In 2NF:</strong></p><p><strong>appointments</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*Eg7Ee6EfXdQNXxf3Sy21Ww.png" /></figure><p><strong>appointment_services</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*J_stsrbn3JX_usPWN6rtjw.png" /></figure><p>Now the appointment information is stored once. The appointment_services table only stores the services linked to that appointment. The patient and doctor names are still text here. Step 4 replaces them with IDs.</p><h3>Third Normal Form: Do Not Repeat Details That Belong Elsewhere</h3><p>Third normal form, or <strong>3NF</strong>, removes indirect repetition.</p><p>× <strong>Not in 3NF:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eLmw5lIkQCQIfv0nObSVDQ.png" /></figure><p>The specialization name depends on specialization_id, not on the doctor. Storing it in doctors means it will be repeated for every cardiologist.</p><p>✓ <strong>In 3NF:</strong></p><p><strong>doctors</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*xCfD66RiE3NSTlxals88Pw.png" /></figure><p><strong>specializations</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*siZwNGqcsAiI6Kfer7QCjQ.png" /></figure><p>Now Cardiology is stored once. If the clinic changes its name, the team updates one row in specializations, not every doctor.</p><p>After normalization, each table holds only its own facts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kXMCZAEn8N3Q6BPzhk3nUQ.png" /></figure><p>The lines show which tables are related, but the link columns, such as specialization_id in doctors, are not here yet. They come in the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8T33p8rR__UPisVvP_IO0w.png" /></figure><h3>Step 4: Link Related Tables with Foreign Keys</h3><p>To connect two tables, you add a column to one of them. That column is a <strong>foreign key</strong>: it stores the ID of a row in the other table. This is how a relationship is made.</p><p>An appointment should not store redundant information like a patient’s name, phone, and date of birth.</p><p>Instead, it stores the ID of the linked patient:</p><pre>appointment_id: 16<br>patient_id: 1<br>doctor_id: 1</pre><p>The field appointments.patient_id is a <strong>foreign key</strong> that references patients.patient_id.</p><p>The field appointments.doctor_id links to doctors.doctor_id.</p><p>The field doctors.specialization_id links to specializations.specialization_id.</p><p>A foreign key performs two functions:</p><ol><li>It describes the relationship between tables.</li><li>It prevents invalid references.</li></ol><p>Without a foreign key, you can insert an appointment with patient_id = 9999, even if patient 9999 does not exist.</p><p>If there is a foreign key, PostgreSQL rejects this record.</p><p>A column named patient_id alone does not create a foreign key. The REFERENCES constraint creates it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VDBC1IS7WA6KqBLnAd_IDw.png" /></figure><p>The diagram now shows the foreign key columns, marked with a link icon, and an arrow for each relationship. There are still no data types. Types depend on the database engine, so they come in the physical stage.</p><h3>Step 5: Define the Physical PostgreSQL Model</h3><p>The physical model describes the PostgreSQL tables, columns, data types, and rules that you want to create.</p><p>In this example, INT is used for IDs (the diagram shows it as INTEGER, which is the same type), VARCHAR for text, DATE for a date, and TIMESTAMP for a date and time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P8JxNF7AfLE42E1lEforFw.png" /></figure><h3>Create the Database Schema</h3><p>The physical model is ready. Now you need to create it on the PostgreSQL server.</p><p>You can do this in either of two ways:</p><ol><li>Run the CREATE SCHEMA and CREATE TABLE statements in the <a href="https://visualeaf.com/docs/sql-editor">SQL Editor.</a></li></ol><p>The following statements are DDL, short for Data Definition Language. DDL is the SQL used to create the database structure.</p><pre>CREATE SCHEMA clinic;</pre><pre>CREATE TABLE clinic.specializations (<br>  specialization_id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,<br>  specialization_name VARCHAR(100) NOT NULL UNIQUE<br>);</pre><pre>CREATE TABLE clinic.doctors (<br>  doctor_id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,<br>  specialization_id INT NOT NULL<br>    REFERENCES clinic.specializations(specialization_id),<br>  first_name VARCHAR(100) NOT NULL,<br>  last_name VARCHAR(100) NOT NULL<br>);</pre><pre>CREATE TABLE clinic.patients (<br>  patient_id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,<br>  first_name VARCHAR(100) NOT NULL,<br>  last_name VARCHAR(100) NOT NULL,<br>  date_of_birth DATE NOT NULL,<br>  phone VARCHAR(30)<br>);</pre><pre>CREATE TABLE clinic.appointments (<br>  appointment_id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,<br>  patient_id INT NOT NULL<br>    REFERENCES clinic.patients(patient_id),<br>  doctor_id INT NOT NULL<br>    REFERENCES clinic.doctors(doctor_id),<br>  appointment_at TIMESTAMP NOT NULL,<br>  reason VARCHAR(200) NOT NULL,<br>  status VARCHAR(30) NOT NULL DEFAULT &#39;scheduled&#39;,<br>  CONSTRAINT appointments_status_check<br>    CHECK (status IN (&#39;scheduled&#39;, &#39;completed&#39;, &#39;cancelled&#39;))<br>);</pre><p>This is how you can create it in VisuaLeaf’s SQL Editor:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PFLdkQ5nKdwIjoPne1ZhFw.png" /></figure><p>You can also use <a href="https://visualeaf.com/docs/sql-visual-schema"><strong>Materialize</strong></a> instead of running the SQL yourself. Starting with an empty database, VisuaLeaf creates the clinic schema and its tables directly from the physical model.</p><p>Materialize can also apply later changes. In this example, the four original clinic tables already exist, so they are marked as up to date while the new lab_results table is created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Frj_fsZjHgOysrzaaGE8Gg.png" /></figure><p>Use one method to create the original schema. If you run the same CREATE TABLE statements after the tables already exist, PostgreSQL returns an “already exists” error.</p><h3>Step 6: View the Created Database Schema</h3><p>After either option succeeds, open Schema Manager and select the clinic schema.</p><p>You can now see the patients, appointments, doctors, and specializations tables on the PostgreSQL server. This is the implemented database schema: it is no longer only a model or a plan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZO6Cx77-lSOn7xPKA4aCCQ.png" /></figure><p>This schema contains several constraints:</p><ul><li>NOT NULL requires a value.</li><li>PRIMARY KEY makes each ID unique.</li><li>REFERENCES creates foreign-key relationships.</li><li>UNIQUE prevents duplicate specialization names.</li><li>DEFAULT &#39;scheduled&#39; gives new appointments an initial status.</li><li>CHECK prevents unsupported status values.</li></ul><p>For example, PostgreSQL will reject this appointment if patient 9999 does not exist:</p><pre>INSERT INTO clinic.appointments (<br>  patient_id,<br>  doctor_id,<br>  appointment_at,<br>  reason<br>)<br>VALUES (<br>  9999,<br>  3,<br>  &#39;2026-11-20 10:00&#39;,<br>  &#39;Annual check-up&#39;<br>);</pre><p>PostgreSQL returns an error like this:</p><pre>ERROR:  insert or update on table &quot;appointments&quot; violates foreign key constraint &quot;appointments_patient_id_fkey&quot;<br>DETAIL:  Key (patient_id)=(9999) is not present in table &quot;patients&quot;.</pre><p>This is the difference between drawing a relationship in a diagram and enforcing it in the database.</p><h3>ER Diagram vs Database Schema: The Difference</h3><p>The conceptual, logical, and physical models are the steps between the first idea and the finished database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Bcf89us6YwLuQZbY_H2GA.png" /></figure><p>An ER diagram helps the team decide what to build. The database schema is the structure PostgreSQL creates from that plan.</p><p>The tool used for this demonstration is <a href="https://visualeaf.com/download">VisuaLeaf</a>. You can download it for free and follow the same steps: design the model, create the schema, and view the tables and relationships in one place.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22accf56a162" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/er-diagram-vs-database-schema-whats-the-difference-22accf56a162">ER Diagram vs Database Schema: What’s the Difference?</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Open a SQLite Database: Query and Explore Your Data]]></title>
            <link>https://medium.com/@visualeaf/how-to-open-a-sqlite-database-query-and-explore-your-data-866830b56859?source=rss-57c6e0e240c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/866830b56859</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[sqlite]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[VisuaLeaf]]></dc:creator>
            <pubDate>Wed, 14 Oct 2026 17:28:04 GMT</pubDate>
            <atom:updated>2026-10-14T17:28:04.835Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h9mDJLl6lqyjdB0NVpsDxQ.jpeg" /><figcaption>Open a SQLite database in VisuaLeaf and explore it step by step.</figcaption></figure><p>You have a SQLite file and want to see the information inside it. To open a SQLite database, select the file in software that can read SQLite, such as <a href="https://visualeaf.com/">VisuaLeaf</a>. You can then browse the tables and use SQL to find the information you need.</p><p>SQL is the language you use to tell a database what you want. A query is one of those requests. It might ask for ten inspection records, the name of a technician, or the number of checks that failed.</p><p>This guide uses an example inspection database. You’ll open the file, browse its tables, join related records, read JSON values, export results to Excel, and create a chart. If you follow along with your own database, replace the example table and column names with yours.</p><h3>First, understand what is inside the file</h3><p>SQLite stores data in a database file. You don’t need to set up a separate database server to open it.</p><p>Inside the file, the data is organised into <strong>tables</strong>. A table looks a little like a spreadsheet: it has rows and columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Sf0KPdC0OtadiqFs.png" /></figure><p>The information is split across several tables:<br>- sites holds details about the places being inspected,<br>- technicians holds details about the people doing the inspections,<br>- inspection_items holds the results of individual checks.</p><p>An inspection can therefore have one row describing the visit and several other rows describing its checklist items.</p><h3>Open your SQLite database in VisuaLeaf</h3><p>SQLite files often end in .db, .sqlite, or .sqlite3.</p><p>In <a href="https://visualeaf.com/database/sqlite/">VisuaLeaf</a>:</p><ol><li>Create a connection and choose SQLite.</li><li>Select your existing database file.</li><li>Connect, then expand main and <strong>Tables</strong> in the sidebar.</li><li>Open a table to see its records.</li></ol><p>You select a file instead of entering a server address, port, or database username. If your database is already connected, go straight to its tables.</p><p>main is SQLite&#39;s name for the primary database opened by that connection. You don&#39;t need to create another database with that name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PlytDDex1vKKx1lW.png" /></figure><p>If you don’t have a SQLite database yet, click <strong>New DB</strong> in the connection form to create one. It starts empty, so you can add your own tables and data. The examples below use our existing inspection database.</p><h3>Read a few inspections with SQL</h3><p>Open inspections in the data view to browse its rows. You can also choose exactly which columns to display using the SQL Editor:</p><pre>SELECT id, status, risk_score<br>FROM inspections<br>ORDER BY id<br>LIMIT 10;</pre><p>Read this query one line at a time:</p><ul><li>SELECT id, status, risk_score chooses the three columns to show.</li><li>FROM inspections tells SQLite which table to read.</li><li>ORDER BY id sorts the records by their identifier, from smallest to largest.</li><li>LIMIT 10 asks for at most ten rows.</li></ul><p>This query reads data. It doesn’t change the records.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g3pTPAt8n_ftgTsE.png" /></figure><p>The id column is the inspection&#39;s <strong>primary key</strong>: the value that identifies that row. Keep it in your results so you can find the same inspection again.</p><p>Look at the values before writing a filter. A column called status doesn&#39;t tell you which words the application stores there. Check the records rather than guessing whether a status is called complete, completed, or something else.</p><h3>What do the column types mean?</h3><p>Open Table Management for sites. It shows how each column is defined.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YiV-lXnmu6QZD6c8.png" /></figure><p>The screenshot includes three common SQLite types:</p><p>Data type What it stores Example columns INTEGER Whole numbers, such as 1, 2, or 3 id TEXT Text, such as names and cities name, city REAL Numbers with decimals, such as 44.43 latitude, longitude</p><p>The active column has a <strong>default</strong> of 1. That means SQLite supplies 1 when a new row leaves this column out of the insert.</p><p>A default alone also allows someone to enter another value. To restrict active to 0 and 1, the table would need a <strong>constraint</strong>, which is a rule that data must follow. For example, CHECK (active IN (0, 1)) checks that the value is one of those two numbers. A separate NOT NULL rule rejects a missing value.</p><p>Click <strong>Show DDL</strong> to see the SQL that defines the sites table. DDL means <em>Data Definition Language</em>. This definition shows the column types and rules, such as primary keys, foreign keys, NOT NULL, and default values.</p><p>You can also inspect the table’s <strong>indexes</strong>. An index is a lookup structure, a little like the index at the back of a book. It can help SQLite find certain values without reading every row. Having an index on a column does not automatically connect it to another table.</p><p>SQLite is flexible with data types. In a regular table, a column marked INTEGER may still accept text. The declared type tells you what the column is intended to store, but it does not always enforce that type.</p><h3>Understand foreign keys and join related tables</h3><p>The inspections table stores site_id and technician_id to identify where each inspection took place and who performed it. The site and technician details live in their own tables.</p><p>A <strong>primary key</strong> identifies a specific row. For example, sites.id identifies each site.</p><p>A <strong>foreign key</strong> is a rule that connects a value in one table to a matching key in another. Here, inspections.site_id refers to sites.id.</p><p>If an inspection has site_id = 7, it belongs to the site whose id is 7. You can look up that site’s name and city in sites, without copying those details into every inspection row. Several inspections can have the same site_id because you can inspect the same site more than once.</p><p>The same idea applies to technician_id: it refers to the technician’s id in technicians.</p><p>The <a href="https://visualeaf.com/features/visual-schema/">ER diagram</a> shows these connections as lines between the tables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xKOEatPZsudf2O1p.png" /></figure><p>A <strong>join</strong> uses those matching values to bring information from different tables into one result:</p><pre>SELECT<br>    inspections.id,<br>    sites.name AS site,<br>    technicians.full_name AS technician,<br>    inspections.risk_score<br>FROM inspections<br>LEFT JOIN sites<br>    ON inspections.site_id = sites.id<br>LEFT JOIN technicians<br>    ON inspections.technician_id = technicians.id<br>ORDER BY inspections.id<br>LIMIT 10;</pre><p>A name such as sites.name means “the name column in the sites table.” Writing the table name first makes it clear which table we mean.</p><p>The query starts with inspections, matches each one to its site, and then matches it to its technician. The result puts the inspection ID, both names, and the risk score together.</p><p>LEFT JOIN keeps the inspection in the result even if a matching site or technician is missing. SQLite shows NULL for the missing information. NULL means no value. A normal inner JOIN would leave out inspections without a match.</p><p>A null name alone doesn’t prove a record is missing: the related row could exist but have no name. Check the matching IDs before deciding what is wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I2yXCA4La5Xd6BMN.png" /></figure><p>You can also create this query visually with VisuaLeaf’s <a href="https://visualeaf.com/features/visual-query-builder/">Query Builder</a>, without writing SQL. Select the tables, connect their matching columns, and choose which fields to include in the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4JmVpLn1YqgNDkXe.png" /></figure><h3>Is SQLite checking the relationships?</h3><p>SQLite can have foreign keys defined while their enforcement is turned off. To check the current connection’s setting, run:</p><pre>PRAGMA foreign_keys;</pre><p>A result of 1 means checking is on; 0 means it is off. To enable it, run this before making changes, outside an active transaction:</p><pre>PRAGMA foreign_keys = ON;</pre><p>This setting applies to the current connection. It helps prevent new invalid references, but it does not fix existing ones.</p><h3>Query JSON data in SQLite</h3><p>One database column can hold several related details as JSON. In our inspections table, device_info stores the device platform, app version, battery percentage, and whether the inspection was recorded offline.</p><p>Start by viewing the original values:</p><pre>SELECT id, device_info<br>FROM inspections<br>LIMIT 3;</pre><p>You can see the result on the left of the screenshot. Each device_info cell contains named values, such as &quot;platform&quot;:&quot;android&quot;. Here, platform is the name and android is its value.</p><p>To display the platform separately, use json_extract():</p><pre>SELECT<br>    i.id AS inspection_id,<br>    s.name AS site,<br>    json_extract(i.device_info, &#39;$.platform&#39;) AS platform,<br>    json_extract(i.device_info, &#39;$.app_version&#39;) AS app_version,<br>    json_extract(i.device_info, &#39;$.battery_percent&#39;) AS battery,<br>    i.risk_score<br>FROM inspections AS i<br>JOIN sites AS s ON s.id = i.site_id<br>WHERE json_extract(i.device_info, &#39;$.offline&#39;) = 1<br>ORDER BY i.risk_score DESC<br>LIMIT 12;</pre><p>Read that expression in three parts:</p><ul><li>device_info is the column containing the JSON.</li><li>&#39;$.platform&#39; tells SQLite to find the value named platform inside it.</li><li>AS platform names the result column.</li></ul><p>This creates a column in your query results. It does not add a new column to the database or change the stored JSON.</p><p>The longer query on the right extracts the platform, app version, and battery percentage. It also adds the site name using a join.</p><p>Its WHERE condition keeps inspections where offline is true. SQLite returns that JSON value as 1. Finally, ORDER BY ... DESC puts the highest risk scores first, and LIMIT 12 returns at most twelve rows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pZo36aztudKJFsUh.png" /></figure><h3>Export SQLite query results to Excel</h3><p>Once your query returns the information you need, you <a href="https://visualeaf.com/blog/automate-mongodb-exports-imports-sync-jobs/">can export it to an Excel </a>workbook. This lets you share the results with someone who doesn’t use a database tool.</p><p>Open the export form for your query, then:</p><ol><li>Set <strong>Source Type</strong> to <strong>Query</strong>.</li><li>Select your SQLite connection and the main database.</li><li>Check the SQL in the <strong>Query</strong> field.</li><li>Set <strong>Target Type</strong> to <strong>Excel Workbook</strong>.</li><li>Choose a file location and name, such as inspections.xlsx.</li><li>Click <strong>Export Now</strong>.</li></ol><p>For our JSON query, the exported columns contain the inspection ID, site, platform, app version, battery percentage, and risk score.</p><p>The export follows your query’s filters and limits. If you keep LIMIT 12, it exports at most twelve rows. Remove that limit if you want all matching inspections.</p><p>The Excel file contains a copy of the query results. Editing it does not update your SQLite database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W2ru4IFKR0HeAxXY.png" /></figure><h3>Count and chart failed checks by category</h3><p>Use GROUP BY to group failed checklist items by category, then COUNT(*) to count them:</p><pre>SELECT<br>    issue_category,<br>    COUNT(*) AS failed_checks<br>FROM inspection_items<br>WHERE result = &#39;fail&#39;<br>GROUP BY issue_category<br>ORDER BY failed_checks DESC<br>LIMIT 8;</pre><p>The query returns up to eight categories with the most failed checks.</p><p>In <a href="https://visualeaf.com/features/chart-builder/">VisuaLeaf’s Chart Builder</a>, choose <strong>Pie</strong>, set <strong>Category</strong> to issue_category, and <strong>Value</strong> to failed_checks. Each slice shows that category’s share of the failed checks returned by the query.</p><p>These totals count checklist items, not inspections. One inspection can contain several failed items. Remove LIMIT 8 if you want to include every category with failed checks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Dy0Ni3xTR5V_5dg9.png" /></figure><h3>Conclusion</h3><p>Start by opening your SQLite file and checking its tables and columns. Then use a small SELECT query to read a few records before adding filters, joins, or calculations.</p><p>Once the results contain what you need, you can export them to Excel or turn them into a chart. Check your filters and row limits first — they determine which data appears in the final result.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=866830b56859" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MongoDB 9.0 in Practice: Query Settings, Validation, and Resource Limits]]></title>
            <link>https://javascript.plainenglish.io/mongodb-9-0-in-practice-query-settings-validation-and-resource-limits-23a39bc3cfa6?source=rss-57c6e0e240c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/23a39bc3cfa6</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[nosql]]></category>
            <dc:creator><![CDATA[VisuaLeaf]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 20:15:07 GMT</pubDate>
            <atom:updated>2026-10-09T20:15:07.569Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8HfNQNOiY7zlCcr_KLJkAw.png" /></figure><p>A new database release is easier to understand when you run the same command on the old and new versions. Does it accept an option that was previously rejected? Does it enforce a rule differently? Can you complete a task that previously needed a workaround?</p><p>For this article, I used MongoDB 9.0.2 in Docker and kept my MongoDB 8.2.5 instance available for comparison. I connected to both through <a href="https://visualeaf.com/">VisuaLeaf</a> and used a streaming-platform dataset for the query examples.</p><p>This article covers the following changes.</p><pre>| Change | Before 9.0 | What changed | Useful example |<br>| --- | --- | --- | --- |<br>| **Query settings** | Query settings were stored for matching query shapes. | Pass settings directly to one command. | Try an index choice for one execution, then inspect the Explain plan. |<br>| **Constraint validation** | Adding strict validation did not check existing documents retroactively. | Upgrading to `constraint` checks existing data against the validator. | Enforce valid subscription plans, prices, and currencies. |<br>| **Query timeout** | Timeouts could be supplied with individual commands. | Store a timeout for matching query shapes. | Put a time budget on a recurring reporting query. |<br>| **Memory limit** | Queries had individual stage limits, but no overall query memory cap. | An overall memory limit applies to a query operation. | Inspect the configured limit and memory-limit failure counter. |<br>| **Time-series rename** | `renameCollection` did not support time-series collections. | Rename a time-series collection directly. | Rename playback metrics and verify the settings and documents. |</pre><h3>Reported performance improvements</h3><p>MongoDB reports the following improvements in its <a href="https://www.mongodb.com/company/blog/product-release-announcements/ai-demand-constant-unpredictable-extreme-mongodb-is-built-for-it">internal benchmarks </a>comparing 9.0 with 8.0:</p><ul><li>Up to <strong>35% faster find-one queries</strong>.</li><li>Up to <strong>30% faster update-one queries</strong>.</li><li>Up to <strong>20% higher throughput for transactional workloads</strong>.</li><li>Up to <strong>2× throughput on large instances</strong>.</li></ul><p>Results vary by workload, hardware, deployment, and configuration. My local tests below explore feature behavior; they do not measure these performance gains.</p><h3>Connect to the test instance</h3><p>I used a separate Docker container and data volume for the test. The original database stayed available on port 27017, while the test instance used port 27021.</p><p>In VisuaLeaf, I created a connection named <strong>MongoDB 9.0 Test</strong>, with host 127.0.0.1 and port 27021. This local test instance had authentication disabled. Use the authentication settings configured for your own server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kqDkAW8_RYA77hPn.png" /></figure><p>Before running the examples, I checked the server version and feature compatibility version:</p><pre>db.version()</pre><pre>db.adminCommand({<br>  getParameter: 1,<br>  featureCompatibilityVersion: 1<br>})</pre><p>The server returned 9.0.2 and feature compatibility version 9.0.</p><p>I also restored a BSON dump through <a href="https://visualeaf.com/blog/mongodump-tasks-automate-and-schedule-mongodb-backups/">VisuaLeaf’s Task Manager.</a> The restore job completed, and the streaming-platform database was available for the query tests. Restoring data is part of the test setup, rather than a new MongoDB 9.0 feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EBEMaScal--uHRyu.png" /></figure><h3>Try an index choice for one query</h3><p>Let’s suppose you want to check how a reporting query behaves with a particular index. You want to inspect that execution before deciding whether to apply a setting more broadly.</p><p>MongoDB 9.0 accepts querySettings directly in find, distinct, and aggregate commands. These settings apply to that execution and are not saved for future matching queries. Existing stored settings take precedence when both specify the same field.</p><p>For the first test, I queried paid payments in EUR with an amount of at least 10, sorted by payment date. The command allowed MongoDB to use the existing status_1 index:</p><pre>db.getSiblingDB(&quot;streaming_platform_db&quot;).runCommand({<br>  find: &quot;payments&quot;,<br>  filter: {<br>    status: &quot;paid&quot;,<br>    currency: &quot;EUR&quot;,<br>    amount: { $gte: 10 }<br>  },<br>  sort: { paid_at: -1 },<br>  limit: 5,<br>  singleBatch: true,<br>  querySettings: {<br>    indexHints: {<br>      ns: { db: &quot;streaming_platform_db&quot;, coll: &quot;payments&quot; },<br>      allowedIndexes: [&quot;status_1&quot;]<br>    }<br>  }<br>})</pre><p>On MongoDB 9.0.2, the command returned ok: 1 and five documents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w9PSigjLX6MCydvZ.png" /></figure><p>On 8.2.5, it failed because the command did not recognize the querySettings field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2BqTahFzXSJ1LTge.png" /></figure><p><a href="https://visualeaf.com/features/query-profiler/">To check the index selection</a>, I wrapped the same find command in explain and requested executionStats. <a href="https://visualeaf.com/features/query-profiler/">VisuaLeaf displayed an </a><a href="https://visualeaf.com/features/query-profiler/">IXSCAN</a> using status_1, followed by FETCH and SORT.</p><p>The separate sort made sense: status_1 indexes the payment status, not the payment date. MongoDB examined roughly 5,900 keys and documents to return five results. This confirmed the index choice, but it did not establish that this was the best index for the query.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hyA0CU-ZTd45FTNu.png" /></figure><p>The useful part is being able to test a choice and inspect its consequences. A successful command alone does not tell you whether the query is efficient.</p><h3>Use the same option in an aggregation</h3><p>I also tested a <a href="https://visualeaf.com/blog/aggregation-pipeline-in-mongodb-a-practical-guide-for-developers/">five-stage aggregation</a>: filter the payments, group by plan and payment method, calculate revenue, sort the groups, and return the top ten.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a7b_-oku6-TTs7Tg.png" /></figure><p>The 9.0.2 command returned eight groups. The family/card group contained 194 payments, with an average of EUR 14.99 and total revenue of EUR 2,908.06. The family/Apple Pay group contained 193 payments and EUR 2,893.07 in revenue.</p><p>The pipeline stages themselves work in older MongoDB versions. The change demonstrated here is the command-level querySettings option.</p><h3>MongoDB 9.0: The new constraint validation level</h3><p><a href="https://visualeaf.com/blog/mongodb-json-schema-validation/">Schema validation</a> already existed before MongoDB 9.0. You could require fields, restrict values, and reject invalid inserts or updates.</p><p>The new constraint level addresses existing data too. Adding strict validation does not retroactively check old documents. Upgrading an existing collection to constraint scans them and fails if any violate the validator.</p><p>For the test, I created mongodb9_checks.validated_plans with three requirements: a supported plan, a non-negative double price, and EUR currency.</p><pre>db.getSiblingDB(&quot;mongodb9_checks&quot;).createCollection(<br>  &quot;validated_plans&quot;,<br>  {<br>    validator: {<br>      $jsonSchema: {<br>        bsonType: &quot;object&quot;,<br>        required: [&quot;plan&quot;, &quot;monthlyPrice&quot;, &quot;currency&quot;],<br>        properties: {<br>          plan: { enum: [&quot;basic&quot;, &quot;premium&quot;, &quot;family&quot;] },<br>          monthlyPrice: { bsonType: &quot;double&quot;, minimum: 0 },<br>          currency: { enum: [&quot;EUR&quot;] }<br>        }<br>      }<br>    },<br>    validationLevel: &quot;constraint&quot;,<br>    validationAction: &quot;error&quot;<br>  }<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a987sIkeDUns8SjL.png" /></figure><p>Creating a new collection with this level is straightforward. An existing collection needs MongoDB’s preparation procedure before upgrading.</p><p>A valid document looks like this:</p><pre>{ plan: &quot;family&quot;, monthlyPrice: 14.99, currency: &quot;EUR&quot; }</pre><p>A negative price would fail validation under either strict or constraint. The difference concerns documents already stored: strict can leave old invalid documents in place, while upgrading to constraint cannot succeed until they satisfy the validator.</p><h3>Inspect the rules in Schema Manager</h3><p>I opened validated_plans in <a href="https://visualeaf.com/features/schema-validation/">VisuaLeaf’s Schema Manager </a>to inspect the saved validator. It displays the plan and currency enums, the price minimum, the required fields, and the active constraint level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*54BZdDLVxxi4PusP.png" /></figure><h3>Change the rules after leaving constraint mode</h3><p>I also tried changing the validator with collMod while constraint was active. MongoDB rejected the command, and <a href="https://visualeaf.com/features/mongo-shell/">VisuaLeaf displayed</a>:</p><blockquote><em>Validator cannot be changed when Validation level is ‘constraint’.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5iFEDbp8C6uxreg3.png" /></figure><p>To change the rules, first switch the collection to strict and apply that change separately. Then update the validator. Before returning to constraint, prepare the collection again; the upgrade will fail if any existing documents violate the updated rules.</p><h3>Set a timeout for a recurring query</h3><p>Before 9.0, you could pass maxTimeMS with an individual query. You can now save a timeout for a query shape, the query’s structure, so it applies to matching queries even when filter values change. The stored timeout takes precedence over one supplied in the command.</p><p>This gives a recurring payment report a shared time limit without every caller adding it. It stops queries that exceed the limit; it does not make them faster.</p><p>Stored query settings require a replica set or sharded cluster. I used a single-node Docker replica set named rs9.</p><blockquote><em>I saved a 1 ms timeout for this payment report. This deliberately small limit demonstrates enforcement; for a real report, choose a timeout based on its normal execution time.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9IUWq6x_j0_GMKl-.png" /></figure><h3>Run the report without adding a timeout</h3><p>I then ran the matching aggregation with no maxTimeMS in the command:</p><pre>db.getSiblingDB(&quot;streaming_platform_db&quot;).payments.aggregate([<br>  { $match: { status: &quot;paid&quot;, currency: &quot;EUR&quot; } },<br>  { $group: {<br>    _id: &quot;$subscription_plan&quot;,<br>    totalRevenue: { $sum: &quot;$amount&quot; },<br>    paymentCount: { $sum: 1 }<br>  } },<br>  { $sort: { totalRevenue: -1 } }<br>]).toArray()</pre><p>MongoDB stopped the operation, and VisuaLeaf displayed:</p><blockquote><em>operation exceeded time limit</em></blockquote><p>The report inherited the stored budget from its matching query shape.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BOA-cm0JPZExyajp.png" /></figure><h3>Remove the setting and rerun the same report</h3><p>After capturing the error, I removed the test setting:</p><pre>db.adminCommand({<br>  removeQuerySettings: {<br>    aggregate: &quot;payments&quot;,<br>    pipeline: [<br>      { $match: { status: &quot;paid&quot;, currency: &quot;EUR&quot; } },<br>      { $group: {<br>        _id: &quot;$subscription_plan&quot;,<br>        totalRevenue: { $sum: &quot;$amount&quot; },<br>        paymentCount: { $sum: 1 }<br>      } },<br>      { $sort: { totalRevenue: -1 } }<br>    ],<br>    cursor: {},<br>    $db: &quot;streaming_platform_db&quot;<br>  }<br>})</pre><p>After removing the setting, I reran the same aggregation, and it returned the revenue result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LaWPjXkRBVunieT9.png" /></figure><p>The report did not change between executions. The stored time budget changed whether it could complete.</p><h3>Inspect the overall query memory limit</h3><p>MongoDB 9.0 adds a total memory limit for a query operation. Its default is the greater of 1 GB or 20% of the memory available to the server process. The existing 100 MB per-stage limit and stage spill behavior remain unchanged.</p><p>I inspected two server metrics <a href="https://visualeaf.com/features/split-panel-views/">through VisuaLeaf</a>:</p><pre>var queryMetrics = db.getSiblingDB(&quot;admin&quot;)<br>  .runCommand({ serverStatus: 1 }).metrics.query;</pre><pre>({<br>  memoryLimitBytes:<br>    queryMetrics.configuredMaxMemoryUsageBytesPerOperation,<br>  operationsFailedDueToMemoryLimit:<br>    queryMetrics.operationsFailedDueToMemoryLimit<br>})</pre><pre>| Result | MongoDB 9.0.2 | MongoDB 8.2.5 |<br>| --- | --- | --- |<br>| Configured limit | 1,608,660,582 bytes, approximately 1.50 GiB | Metric unavailable |<br>| Operations rejected for exceeding the limit | 0 | Metric unavailable |</pre><p>VisuaLeaf displayed the unavailable values on 8.2.5 as Null.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AtmG_jjulLkzDGxc.png" /></figure><p>This is useful when investigating expensive reports or aggregations: you can see the configured cap and whether operations have hit it. The number belongs to this Docker setup, so do not expect every server to report the same limit.</p><p>This test checked the metrics. It did not deliberately run a query that exceeded the cap.</p><h3>Rename a time-series collection without rebuilding it</h3><p>MongoDB 9.0 adds support for renaming time-series collections with renameCollection.</p><p>I tested this with a small playback metrics collection. It used recorded_at as its time field, metadata as its meta field, and minutes granularity. The two documents recorded active stream counts and buffering rates for smart TVs in the EU.</p><p>The rename command was:</p><pre>db.getSiblingDB(&quot;admin&quot;).runCommand({<br>  renameCollection: &quot;mongodb9_checks.playback_metrics&quot;,<br>  to: &quot;mongodb9_checks.streaming_metrics&quot;<br>})</pre><p>After renaming it, I checked both the collection settings and its documents:</p><pre>db.getSiblingDB(&quot;mongodb9_checks&quot;)<br>  .getCollectionInfos({ name: &quot;streaming_metrics&quot; })</pre><pre>db.getSiblingDB(&quot;mongodb9_checks&quot;)<br>  .streaming_metrics.find().toArray()</pre><p>The collection still reported type timeseries with the same time field, meta field, and granularity. Both documents remained: 1,250 and 1,320 active streams, with buffering rates of 0.8 and 0.6. VisuaLeaf also identified the collection with its TS badge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Vs-olhCxTooiUVtU.png" /></figure><p>This is useful when a collection name no longer describes its purpose. Here, you can rename the collection, and follow-up checks confirmed that its settings and data remained available.</p><h3>Other MongoDB 9.0 changes</h3><p>MongoDB 9.0 also expands query monitoring and encrypted searches. $queryStats collects statistics for both reads and writes by default, sampling 1% of operations.</p><p>Queryable Encryption now supports generally available prefix, suffix, and substring searches on encrypted strings. These features weren’t part of my local tests, but they are worth exploring for workload monitoring and applications that need searchable encrypted data.</p><h3>Which changes are worth trying first?</h3><p>If you troubleshoot queries, start with per-command query settings and inspect the Explain plan. If you need a guarantee about existing data, look at constraint validation. For reporting workloads, the timeout and memory controls are useful additions to understand. Time-series rename solves a smaller but concrete maintenance task.</p><p>These tests used MongoDB 9.0.2, feature compatibility version set to 9.0, and VisuaLeaf 1.0.2432 on a local Docker deployment. They demonstrate specific commands and results, not a performance benchmark or full compatibility certification.</p><blockquote><em>Before upgrading a production deployment, review MongoDB’s compatibility changes and known issues for your target patch version.</em></blockquote><h3>Sources</h3><ol><li><a href="https://www.mongodb.com/docs/manual/release-notes/9.0/">MongoDB 9.0 release notes</a></li><li><a href="https://www.mongodb.com/docs/manual/core/schema-validation/specify-validation-level/">Specify validation level</a></li><li><a href="https://www.mongodb.com/docs/manual/reference/command/setquerysettings/">setQuerySettings</a></li><li><a href="https://www.mongodb.com/docs/manual/reference/limits/">MongoDB limits and thresholds</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23a39bc3cfa6" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/mongodb-9-0-in-practice-query-settings-validation-and-resource-limits-23a39bc3cfa6">MongoDB 9.0 in Practice: Query Settings, Validation, and Resource Limits</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>