NATION

PASSWORD

Dispatch searching

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.

Advertisement

Remove ads

User avatar
Tinhampton
Postmaster-General
 
Posts: 13701
Founded: Oct 05, 2016
Civil Rights Lovefest

Postby Tinhampton » Tue Nov 29, 2022 2:44 pm

There are ~1.5m dispatches. Why will allowing people to search all of them cause the site to lag? :P
The Self-Administrative City of TINHAMPTON (pop. 329,537): Saffron Howard, Mayor (UCP); Alexander Smith, WA Delegate-Ambassador

Authorships & co-authorships: SC#250, SC#251, Issue #1115, SC#267, GA#484, GA#491, GA#533, GA#540, GA#549, SC#356, GA#559, GA#562, GA#567, GA#578, SC#374, GA#582, SC#375, GA#589, GA#590, SC#382, SC#385*, GA#597, GA#607, SC#415, GA#647, GA#656, GA#664, GA#671, GA#674, GA#675, GA#677, GA#680, Issue #1580, GA#682, GA#683, GA#684, GA#692, GA#693, GA#715
The rest of my CV: Cup of Harmony 73 champions; Philosopher-Queen of Sophia; *author of the most popular SC Res. ever; anti-NPO cabalist in good standing; 48yo Tory woman w/Asperger's; Cambridge graduate ~ currently reading The World by Simon Sebag Montefiore

User avatar
Frisbeeteria
Senior Game Moderator
 
Posts: 27796
Founded: Dec 16, 2003
Capitalizt

Postby Frisbeeteria » Tue Nov 29, 2022 3:31 pm

Tinhampton wrote:There are ~1.5m dispatches. Why will allowing people to search all of them cause the site to lag? :P

I don't know if any proposed search will happen in the database where I think dispatches are stored, or if it's in the flat files are where nations are stored. Searching the flat files slows down the site. It just does. I don't know why, but the 2002 architecture this site is built on has limitations that more modern sites don't have to deal with. We've had several mod tools rejected for this reason.

I could of course be completely wrong, but I'm just setting expectations based on what I believe [v] has said in the past.

User avatar
United Calanworie
Technical Moderator
 
Posts: 3801
Founded: Dec 12, 2018
Democratic Socialists

Postby United Calanworie » Tue Nov 29, 2022 5:05 pm

Tinhampton wrote:There are ~1.5m dispatches. Why will allowing people to search all of them cause the site to lag? :P

Because flat file searches are slow. Fortunately, from what I can tell, dispatches are in a database -- a SELECT query is substantially faster than loading and reading the flat files.
Trans rights are human rights.
||||||||||||||||||||
Discord: Aav#7546 @queerlyfe
She/Her/Hers
My telegrams are not for Moderation enquiries, those belong in a GHR. Feel free to reach out if you want to just chat.

User avatar
Panagouge
Diplomat
 
Posts: 631
Founded: Aug 03, 2018
Civil Rights Lovefest

Postby Panagouge » Tue Nov 29, 2022 7:26 pm

And if dispatch searching via bot/script/api/whatever is a concern, making that illegal is easy enough.
I exist, and so do you.

User avatar
Ioudaia
Diplomat
 
Posts: 638
Founded: Nov 13, 2010
New York Times Democracy

Postby Ioudaia » Tue Nov 29, 2022 8:25 pm

Grea Kriopia wrote:A page=search is ideal imo because then you can bookmark or share topics you were looking for as needed.

Oooh! That's a great idea!

User avatar
United Calanworie
Technical Moderator
 
Posts: 3801
Founded: Dec 12, 2018
Democratic Socialists

Postby United Calanworie » Thu Dec 01, 2022 3:48 pm

Panagouge wrote:And if dispatch searching via bot/script/api/whatever is a concern, making that illegal is easy enough.

Fortunately, it doesn't even have to be made illegal -- we just make it technically infeasible to do so.
Trans rights are human rights.
||||||||||||||||||||
Discord: Aav#7546 @queerlyfe
She/Her/Hers
My telegrams are not for Moderation enquiries, those belong in a GHR. Feel free to reach out if you want to just chat.

User avatar
The Orwell Society
Minister
 
Posts: 2241
Founded: Apr 16, 2022
Psychotic Dictatorship

Postby The Orwell Society » Thu Dec 01, 2022 4:16 pm

I love this idea
The Orwell Society
Straight Male | Political Alignment: Centrist leaning conservative | NSGP Alignment: Independent | Proud Wellspringer, join The Wellspring today!

A vision without action is just a daydream

User avatar
Ever-Wandering Souls
Negotiator
 
Posts: 7267
Founded: Jan 01, 2014
Father Knows Best State

Postby Ever-Wandering Souls » Thu Dec 01, 2022 4:20 pm

Frisbeeteria wrote:
United Calanworie wrote:would we prefer to not even bother with that and instead always search *everything*

Maybe dispatches are stored differently, but there are around 8 million dead nations. Searching all of them (as opposed to the 300K active nations) would almost certainly slow the game every time someone searched. Not only should it not be the default, it shouldn't even be an option.


...would it have to search each nation file? Are dispatches not something that's been database'd? The forums have tens of millions of posts (well, at least millions, F7 purges will have trimmed the total number somewhat), and searches against that database run mostly just fine.

Edit - ah, I missed page 2 of the thread, where Aav clarifies that they should be databased. Thank the Gods, lol. I'd favor "everything" 100% then.
Last edited by Ever-Wandering Souls on Thu Dec 01, 2022 4:21 pm, edited 1 time in total.
Proud Raider; General of The Black Hawks, Ret.
TG me anytime; I'm always happy to talk about anything!

The Alicorns (Equestria) wrote:Let them stay, no need to badmouth them...From our view a bunch of nations just came in, seized the delegate position, and changed a few superficial things...we play NationStates differently...there's really no reason for us to be butthurt.
http://www.nationstates.net/page=rmb/postid=8944227
http://www.nationstates.net/page=rmb/postid=8951258

Misley wrote:
Hobbesistan wrote:Don't think I understand the question.
The color or what?..

Jesus, Hobbes, it's 2015. You can't just call someone "the color".

Reploid Productions wrote:Raiders are endlessly creative

How Do I Telegram API?

Omnis delenda est.

User avatar
Adastra
Bureaucrat
 
Posts: 49
Founded: Sep 24, 2022
Father Knows Best State

Postby Adastra » Fri Dec 02, 2022 1:25 pm

United Calanworie wrote:How would you envision such an interface?


I think the following advanced search functionality (among others) would be nice:
- the ability to search only Dispatch Titles, only Dispatch Content, or in Both
- the ability to narrow down to Dispatches to those made by members of a specific region
- the ability to narrow down Dispatches to those made by nations already marked on your Dossier
- the ability to narrow down Dispatches between, prior, or after certain dates since last update (or since publishing if possible)
- the ability to distinguish between factbook and non-factbook Dispatches (likely already made possible by a 'search by category' function)

United Calanworie wrote:Where should this interface be accessible from? page=dispatches? Do we want a page=search that comes with "advanced" search options while page=dispatches just has a little keyword-search box?


I think the search being from page=dispatches is the best location.
I also think page=dispatches/nation=NATION should offer the same search functionality, but narrowed down to the dispatches of that nation.
Is there such thing as a page=dispatches/region=REGION? for dispatches from that region's members?

With search functionality, I wonder if it's possible to add to one's dossier new dispatches based on certain keywords, but I can't think of a smooth implementation (without implementing a keywords/tags system)
Founder of Distant Worlds | My telegrams are always open.
A sci-fi, retrofuturist, roleplay and worldbuilding region.
Imitation is the most sincere form of flattery.

User avatar
Ever-Wandering Souls
Negotiator
 
Posts: 7267
Founded: Jan 01, 2014
Father Knows Best State

Postby Ever-Wandering Souls » Fri Dec 02, 2022 2:49 pm

There *are* categories already, like gameplay->reference, which aren't keywords per se, but do help narrow things down a bit.

If making full dispatch body text searchable isn't an option, then a middle ground might be a new "short description" sort of field, seperate from the title, and making that indexed. Give people a tweet's worth of chars to list tags or keywords, going forwards, so they can have a snazzy title but still provide useful info for a search.
Proud Raider; General of The Black Hawks, Ret.
TG me anytime; I'm always happy to talk about anything!

The Alicorns (Equestria) wrote:Let them stay, no need to badmouth them...From our view a bunch of nations just came in, seized the delegate position, and changed a few superficial things...we play NationStates differently...there's really no reason for us to be butthurt.
http://www.nationstates.net/page=rmb/postid=8944227
http://www.nationstates.net/page=rmb/postid=8951258

Misley wrote:
Hobbesistan wrote:Don't think I understand the question.
The color or what?..

Jesus, Hobbes, it's 2015. You can't just call someone "the color".

Reploid Productions wrote:Raiders are endlessly creative

How Do I Telegram API?

Omnis delenda est.

Previous

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: 9003, Aserlandia, Card Cleaver, Copeland, Grandocantorica, Heromerland, Hulldom, Khantin, North American Imperial State, Schardonia, Skiva, Western Vapia

Advertisement

Remove ads