The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Max number of pages?
#9
There is no API in GetSimple lol, not object-oriented, just a bunch of global functions.

Well, we should be really careful when we say that with a certain number of pages, an XML application is faster than one that uses relational database. There are just too many factors to take into consideration. I mean, you can write a database-based application that is slower than one that reads the same amount of data from an XML file, or you can write a flat-file application that is much slower than the one that uses a database.

The number of pages plays only a subordinate role. Much more important is the amount of data and the data structure to be handled. A page can have different amount of bytes, the XML file can also have very nested complex structure. For example, a page may contain only a string "Hello world", another may contain huge text the length of a thick book etc. So, in general, to say that above a certain number of pages the application is no longer efficient is wrong. – It depends on the structure of the data, server configuration e.g. caching type, database connection pooling, quality of the code base and of course the query involved.

Yeah, if an XML file is small and the data structure is simple, and you just do a simple parse request, the script might be faster, but only slightly and only maybe. So little faster that it's hardly worth mentioning, I guarantee you won't notice. The entire JavaScript, CSS loading excess in the frontend is definitely a bigger bottleneck. Besides, a next slightly more complex MySQL query (for example to map a navigation structure with a counting of pages), makes everything bet again. Furthermore, the loading speed of the website is highly dependent on the concurrent requests (number of visitors). Again, this only applies if no cache engine is used - which no modern website should do. If the same cache engine is used in an XML and a database application, both can render the same content at the same speed. As far as I can remember (maybe I'm wrong), GetSimple caches its content in the frontend, but not in the backend when rendering the page list, which is why you probably notice the difference in loading speed.

Remember though, performance alone should not be a reason for choosing XML over the relational database, this is ridiculous.
Reply


Messages In This Thread
Max number of pages? - by johneh - 2021-06-30, 06:42:59
RE: Max number of pages? - by Felix - 2021-06-30, 18:00:29
RE: Max number of pages? - by johneh - 2021-06-30, 21:46:42
RE: Max number of pages? - by dryland404 - 2021-10-26, 23:45:53
RE: Max number of pages? - by Felix - 2021-10-27, 12:55:36
RE: Max number of pages? - by dryland404 - 2021-10-28, 03:32:53
RE: Max number of pages? - by Felix - 2021-10-28, 04:26:51
RE: Max number of pages? - by dryland404 - 2021-10-28, 05:44:57
RE: Max number of pages? - by Bigin - 2021-10-29, 17:42:24
RE: Max number of pages? - by Felix - 2021-10-31, 21:14:50
RE: Max number of pages? - by Bigin - 2021-11-01, 15:16:53
RE: Max number of pages? - by Felix - 2021-11-01, 16:04:07
RE: Max number of pages? - by Bigin - 2021-11-01, 18:50:12
RE: Max number of pages? - by shawn_a - 2021-11-02, 12:16:36
RE: Max number of pages? - by Bigin - 2021-11-02, 15:03:22



Users browsing this thread: 1 Guest(s)